Class: OpenAuth2::Provider::Default
- Inherits:
-
Object
- Object
- OpenAuth2::Provider::Default
- 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
#options ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/open_auth2/provider/default.rb', line 9 def { :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 |