Class: OAuth2::Strategy::Application
- Inherits:
-
AuthCode
- Object
- AuthCode
- OAuth2::Strategy::Application
- Defined in:
- lib/oauth2/strategy/application.rb
Instance Method Summary collapse
Instance Method Details
#get_token(params = {}, opts = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/oauth2/strategy/application.rb', line 7 def get_token(params={}, opts={}) params = { grant_type: 'authorization_code', headers: { 'Accept' => 'application/json' } }.merge(client_params).merge(params) @client.get_token(params, opts) end |