File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class OAuth2
24
24
option :authorize_options , [ :scope ]
25
25
option :token_params , { }
26
26
option :token_options , [ ]
27
+ option :auth_token_params , { }
27
28
option :provider_ignores_state , false
28
29
29
30
attr_accessor :access_token
@@ -96,7 +97,7 @@ def deep_symbolize(hash)
96
97
97
98
def build_access_token
98
99
verifier = request . params [ 'code' ]
99
- client . auth_code . get_token ( verifier , { :redirect_uri => callback_url } . merge ( token_params . to_hash ( :symbolize_keys => true ) ) )
100
+ client . auth_code . get_token ( verifier , { :redirect_uri => callback_url } . merge ( token_params . to_hash ( :symbolize_keys => true ) ) , deep_symbolize ( options . auth_token_params ) )
100
101
end
101
102
102
103
# An error that is indicated in the OAuth 2.0 callback.
You can’t perform that action at this time.
0 commit comments