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_mismatch #25

Open
jakoss opened this issue Oct 22, 2015 · 3 comments
Open

redirect_uri_mismatch #25

jakoss opened this issue Oct 22, 2015 · 3 comments
Assignees
Labels

Comments

@jakoss
Copy link

jakoss commented Oct 22, 2015

I'm trying to use gplus with devise as:

config.omniauth :gplus, ENV['KEY'], END['SECRET'], scope: 'plus.me'

But got an error after authenticating an app

[INFO ] GET     "/users/auth/gplus"  for 127.0.0.1  at 2015-10-23 01:05:40 +0200
I, [2015-10-23T01:05:40.381631 #12064]  INFO -- omniauth: (gplus) Request phase initiated.
[INFO ] GET     "/users/auth/gplus"  for 127.0.0.1  at 2015-10-23 01:05:40 +0200
I, [2015-10-23T01:05:40.947661 #12064]  INFO -- omniauth: (gplus) Request phase initiated.
[INFO ] GET     "/users/auth/gplus/callback?state=add473c3dbfdcdba771c0ba5bba51daa2fb4dc272d3d583f&code=4/zu4utHhE_HtoZClhZZZuPVi8iOpjh0Vgts57N7zJ17o"  for 127.0.0.1  at 2015-10-23 01:05:43 +0200
I, [2015-10-23T01:05:44.346618 #12064]  INFO -- omniauth: (gplus) Callback phase initiated.
E, [2015-10-23T01:05:44.809012 #12064] ERROR -- omniauth: (gplus) Authentication failure! invalid_credentials: OAuth2::Error, redirect_uri_mismatch: 
{
  "error" : "redirect_uri_mismatch"
}
@samdunne samdunne added the bug label Oct 23, 2015
@samdunne samdunne self-assigned this Oct 23, 2015
@erpe
Copy link

erpe commented Nov 2, 2015

could it be it is related to this change? - omniauth/omniauth-oauth2@2615267

when i lock omniauth-oauth2 at '~>1.3.1' instead of latest 1.4.0 authentication works again.

erpe referenced this issue in omniauth/omniauth-oauth2 Nov 2, 2015
Don't override callback_url Attempt to correct #28
samdunne added a commit that referenced this issue Nov 26, 2015
@kdiogenes
Copy link

@erpe I locked omniauth-oauth2 at '~> 1.3.1' and auth worked here too. Thanks!

@waleedarshad
Copy link

+1 Same issue how to fix. i tried with 1.3.1 and version does not exist

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

No branches or pull requests

5 participants