Skip to content
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

redirect_uri is invalid, please pass same redirect_uri, you used in authorize method #43

Closed
Stajor opened this issue Nov 4, 2015 · 5 comments

Comments

@Stajor
Copy link

Stajor commented Nov 4, 2015

I can't make login via Devise
config.omniauth :vkontakte, 'APP_ID', 'APP_SECRET', scope: 'friends,audio,email,offline,video'
url: localhost:3000/users/auth/vkontakte
And I get an error

I, [2015-11-04T13:32:16.541188 #13163]  INFO -- omniauth: (vkontakte) Callback phase initiated.
E, [2015-11-04T13:32:17.002804 #13163] ERROR -- omniauth: (vkontakte) Authentication failure! invalid_credentials: OAuth2::Error, invalid_grant: redirect_uri is invalid, please pass same redirect_uri, you used in authorize method.
{"error":"invalid_grant","error_description":"redirect_uri is invalid, please pass same redirect_uri, you used in authorize method."}
Processing by OmniauthCallbacksController#failure as HTML
@thorn
Copy link

thorn commented Nov 5, 2015

Got the same error too so rolled back to 1.3.3 version of gem.

@mamantoha
Copy link
Owner

I will take a look at the problem this weekend.

@mamantoha
Copy link
Owner

It was not difficult: 7c400fc

Fix released in 1.3.6.
@thorn @Stajor please test this and let me know if there is anything else.

@Stajor
Copy link
Author

Stajor commented Nov 5, 2015

working
thanks
👍

@thorn
Copy link

thorn commented Nov 6, 2015

+1
Confirmed, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants