TwentyT
Twenty2y ago
5 replies
A

Error 404: redirect_uri_mismatch - Google Auth

Sometimes when logging in, an error is thrown stating the following:

This is depsite, as shown attached, the following redirect URLs being specified (is there any documentation on this as I have not found anything clear)?....
Error 400: redirect_uri_mismatch

You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy.

If you're the app developer, register the redirect URI in the Google Cloud Console.
Request details: response_type=code redirect_uri=http://localhost:3000/auth/google/redirect state={} prompt=select_account client_id=180645751<redacted>.apps.googleusercontent.com access_type=online scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile openid


In Docker Compose, I have set
IS_SIGN_UP_DISABLED: ${IS_SIGN_UP_DISABLED}
MESSAGING_PROVIDER_GMAIL_ENABLED: ${MESSAGING_PROVIDER_GMAIL_ENABLED}
CALENDAR_PROVIDER_GOOGLE_ENABLED: ${CALENDAR_PROVIDER_GOOGLE_ENABLED}
AUTH_GOOGLE_APIS_CALLBACK_URL: ${AUTH_GOOGLE_APIS_CALLBACK_URL}
AUTH_GOOGLE_ENABLED: ${AUTH_GOOGLE_ENABLED}
AUTH_GOOGLE_CLIENT_ID: ${AUTH_GOOGLE_CLIENT_ID}
AUTH_GOOGLE_CLIENT_SECRET: ${AUTH_GOOGLE_CLIENT_SECRET}
AUTH_GOOGLE_CALLBACK_URL: ${AUTH_GOOGLE_CALLBACK_URL}
SIGN_IN_PREFILLED: ${SIGN_IN_PREFILLED}
Was this page helpful?