-
-
Notifications
You must be signed in to change notification settings - Fork 417
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
I get redirect_uri_mismatch but it's not the problem #204
Comments
Take a look at omniauth/omniauth-oauth2#81. |
Thanks, sounds like it. Another +1 for explicitly stating version used instead of >= |
+1 for explicitely stating gem version. Fixed this for me! gem 'omniauth-oauth2', '~> 1.3.1' |
Yeah that's what I did in the end and it works fine. |
Thanks for posting this. This gem should set it's version dependency to '~>1.3.1' to avoid this issue for people. The issue has been open on omniauth-oauth2 for 7 days now and still isn't fixed. Fixing the dependency issue in this gem will save future people hours if not days of wasted time. Happy to handle the PR @zquestz |
Also, that is what the owner of the omniauth-oauth2 repo is recommending. |
New gem is now released that locks the dependency to ~> 1.3.1. |
@zquestz thanks! |
No problem. Thanks for the debugging and getting to the heart of the issue. =) |
Yesterday, I did a release in production (Heroku) of a small change (nothing to do with gem file, routes or authentification in general).
Then I started getting complains than people could not log in anymore
Turned out the error in the log is the following:
(google_oauth2) Authentication failure! invalid_credentials: OAuth2::Error, redirect_uri_mismatch:
{
"error" : "redirect_uri_mismatch"
}
It obviously has nothing to do with redirect URL since the no routes have changed and my google console API webclient didn't change in 6 month either.
I do a lot of releases and I know that on the 20th October (4 days ago), it worked fine.
I reverted to previous release, which worked fine. Now I just can't deploy new version because of this problem that I can reproduce on my Staging environment by just making a new release.
I saw that this gem dependencies are
RUNTIME DEPENDENCIES:
addressable ~> 2.3
jwt ~> 1.0
multi_json ~> 1.3
omniauth >= 1.1.1
omniauth-oauth2 >= 1.1.1
omniauth-oauth2 did a release on the 21st October, so I would think this is the problem but did not investigate further yet.
Any idea how to solve or investigate further?
The text was updated successfully, but these errors were encountered: