Oauth Problem

Access blocked: The request for this app is not valid

[email protected]
You can’t login because this app sent an invalid request. You can try again later or contact the developer about this issue. More information about this error
If you are a developer of this app, please see the error details.
Error 400: redirect_uri_mismatch

I don’t understand what is wrong, I have everything configured correctly and yet it keeps giving this error.

Hi,

Can you please be more specific. What are you trying to achieve? What have you tried? Please share your workflow.

When creating a question, there is a template to enable people to assist you in a correct way.

Please follow the template.

Regards
J.

Hi jcuypers,

I have the same issues. This is in regards to trying to connect Google Cloud OAuth2 with the Google node. My specific issue was trying to connect Google Docs node using OAuth2. After setting up Google Cloud credentials and inputing the Client ID and Client Secret, I was prompted to “Sign in with Google”. After attempting to sign in with google I was immediately hit with the same message as fernando. Seems to be a very common issue and I have not found a work around

Same identical issue here.
I am running n8n locally on a Raspberry PI with private IP but I access the n8n GUI via a Cloudflare tunnel via a custom subdomain which is what I’ve used to add to the Authorised redirect URIs in the OAuth Client ID for Web application config.

Just to reply to myself and perhaps might help others, I have setup the WEBHOOK_URL environment variable with my subdomain as per Securely Self-Hosting n8n with Docker & Cloudflare Tunnel (The... Arguably Less-Painful Way) and that helped.

Hi Fernando,

The issue is due to a redirect URI mismatch. To resolve it:

  1. Go to Google Cloud Console > APIs & Services > Credentials.
  2. Open your OAuth 2.0 Client ID.
  3. Add this exact redirect URI:
    https://oauth.n8n.cloud/oauth2/callback
  4. Save and try again.

Let me know if you still face issues.

Best,
Naeem Ahmed