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
Then when I visit the link to check my credentials I get:
Failed to load
Tracking Number: somenumber
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.