OAuth2 Google redirect_uri_mismatch on n8n Cloud (custom domain)

Hi, I’m using n8n Cloud with a custom subdomain https://danielene.app.n8n.cloud.

I’m trying to connect to Google using OAuth2 (e.g., Google Sheets / Google Docs), but I keep getting this error: redirect_uri_mismatch, Bad Request

:white_check_mark: I already added this URI in the Google Cloud Console:
https://danielene.app.n8n.cloud/rest/oauth2-credential/callback

:cross_mark: But in n8n, it shows the default one: https://oauth.n8n.cloud/oauth2/callback

This mismatch is causing Google to reject the redirect.

Can you please assist? I think n8n might still be sending the wrong redirect behind the scenes.

Thanks!

I spent like 5-6 hours to make it work and it doesn’t.

Please help…

1 Like

Facing the same issue - confirmed that the Client Secret and Client ID are correct

1 Like

Yes several of us on the forums have been having the exact same issue since yesterday - i have given up on using google OAuth until this is fixed, i suspect you are exactly right and there is a mismatch on the URIs behind the scenes

2 Likes

Same issue here, trying since yesterday. n8n needs to fix this.

1 Like

yes exactly

What I want to know is if the issue is from my side, or from n8n, it kinda drove me crazy, i tried like 5 hours or so to make it work… from you guys it seems that the issue is from n8n with the version 2.1 and above

Yes, I am experiencing this issue as well and needed help to start using it. n8n, please help. Thank you.

1 Like

IT works now in version 2.1.4 latest stable. They fixed it.

1 Like