-
-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hash incompatibility with oauth2 gem #63
Comments
Do you have a patch for this? I would be happy to accept a pull request to make this easier to use. |
I'm pretty sure this is fixed in newer oauth2 libraries. It checks for both Symbol and String keys which I assume was the issue here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why it's not easy to use
omniauth-oauth2
with https://github.com/intridea/oauth2?From omniauth i get credentials hash like this:
https://github.com/intridea/omniauth-oauth2/blob/master/lib/omniauth/strategies/oauth2.rb#L41
And it's impossible to use
OAuth2::AccessToken.from_hash()
method without modify the credentials hash https://github.com/intridea/oauth2/blob/master/lib/oauth2/access_token.rb#L45The text was updated successfully, but these errors were encountered: