Class: OpenAuth2::Provider::Default

Inherits:
Object
  • Object
show all
Defined in:
lib/open_auth2/provider/default.rb

Overview

Contains the default Options, which is copied to Config on #initialize. We can then choose another provider or overwrite them individually.

Instance Method Summary collapse

Instance Method Details

#optionsObject



9
10
11
12
13
14
15
16
17
# File 'lib/open_auth2/provider/default.rb', line 9

def options
  {
  :response_type            => 'code',
  :access_token_grant_name  => 'authorization_code',
  :refresh_token_grant_name => 'refresh_token',
  :refresh_token_name       => :refresh_token,
  :scope                    => [],
  }
end

#parse(config, response_body) ⇒ Object



19
20
21
# File 'lib/open_auth2/provider/default.rb', line 19

def parse(config, response_body)
  response_body
end