0

I have a rails app running behind nginx, nginx has letsencrypt certificates enabled, but rails is not encrypted. When I try to authenticate with Google OAuth2 I get:

400. That’s an error.

Error: redirect_uri_mismatch

The redirect URI in the request, https://example.com/auth/google_oauth2/callback does not match the ones authorized for the OAuth client.

To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/something

enter image description here

Then when I visit the link to check my credentials I get:

Failed to load

Tracking Number: somenumber

enter image description here

But when I go to to the developers console both URLs the one showing up in the 404 error and the one I have specified in Authorized redirect URIs are the same.

rraallvv
  • 2,875
  • 6
  • 30
  • 67
  • 1
    Here are some informations about the same problem, please check peoples experience in comments below, because some mentioning that after one hour service works well and in some periods they had similar issues or so: https://stackoverflow.com/questions/11485271/google-oauth-2-authorization-error-redirect-uri-mismatch – Nezir Sep 30 '18 at 19:27
  • @Nezir Thanks. Should I delete this question then? – rraallvv Sep 30 '18 at 20:55
  • no you dont need to do that, just if my link is useful to you please vote and please read comments and info on that link and try fixes and suggestions in your problem, thank you – Nezir Sep 30 '18 at 20:57
  • 1
    @Nezir Got it! Thanks. – rraallvv Sep 30 '18 at 21:15

0 Answers0