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
2424 option :authorize_options , [ :scope ]
2525 option :token_params , { }
2626 option :token_options , [ ]
27+ option :auth_token_params , { }
2728 option :provider_ignores_state , false
2829
2930 attr_accessor :access_token
@@ -96,7 +97,7 @@ def deep_symbolize(hash)
9697
9798 def build_access_token
9899 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 ) )
100101 end
101102
102103 # An error that is indicated in the OAuth 2.0 callback.
You can’t perform that action at this time.
0 commit comments