Need help enabling correct redirect URI for Gmail OAuth on custom subdomain

Hi n8n team and community :wave:

I’m using the hosted n8n cloud version with a custom subdomain:
:link: https://sai1998.app.n8n.cloud

I’m trying to connect my Gmail account using the Google OAuth2 API credential, but I’m stuck because the system only allows this default redirect URI:
:x: https://oauth.n8n.cloud/oauth2/callback

However, since I’m using a custom subdomain, I believe the correct one should be:
:white_check_mark: n8n - OAuth Callback

I’ve already configured this in Google Cloud Console, but n8n won’t let me use it or edit the default.

Could someone from the team please help me:

  • Enable this custom redirect URI for Gmail OAuth2 to work?
  • Or suggest a workaround for hosted users with custom subdomains?

Thank you in advance :pray:
Excited to build Gmail automation flows for my project!

— Sai Kishore Chalumuri

1 Like

Hosting Your Own n8n Server
If you want full control with a custom subdomain, running n8n on your own server (for example, a Google Cloud VM or another VPS) is more flexible.

This way, you can configure the OAuth callback URL as you wish and have complete control over it.

1 Like

I thought normally on n8n cloud you just login, they setup in google console already? Maybe there another option on auth which has this?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.