Skip to content
Browse files

Symbolize options hash.

  • Loading branch information...
1 parent f1c04bf commit 2da4e826c0f9ec1f597f4c221c1de347c8a9729d Michael Bleigh committed Oct 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/omniauth/strategies/oauth2.rb
View
2 lib/omniauth/strategies/oauth2.rb
@@ -62,7 +62,7 @@ def callback_phase
def build_access_token
verifier = request.params['code']
- client.auth_code.get_token(verifier, {:redirect_uri => callback_url}.merge(options.token_params))
+ client.auth_code.get_token(verifier, {:redirect_uri => callback_url}.merge(options.token_params.to_hash.inject({}){|h,(k,v)| h[k.to_sym] = v; h}))
rescue ::OAuth2::Error => e
raise e.response.inspect
end

0 comments on commit 2da4e82

Please sign in to comment.
Something went wrong with that request. Please try again.