We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e82ed5d commit eaa9442Copy full SHA for eaa9442
lib/omniauth/strategies/oauth2.rb
@@ -24,6 +24,7 @@ class OAuth2
24
option :authorize_options, [:scope]
25
option :token_params, {}
26
option :token_options, []
27
+ option :auth_token_params, {}
28
29
attr_accessor :access_token
30
@@ -97,7 +98,7 @@ def deep_symbolize(hash)
97
98
99
def build_access_token
100
verifier = request.params['code']
- client.auth_code.get_token(verifier, {:redirect_uri => callback_url}.merge(token_params.to_hash(:symbolize_keys => true)))
101
+ client.auth_code.get_token(verifier, {:redirect_uri => callback_url}.merge(token_params.to_hash(:symbolize_keys => true)), deep_symbolize(options.auth_token_params))
102
end
103
104
# An error that is indicated in the OAuth 2.0 callback.
0 commit comments