Google OAuth2 Issues

Hi n8n community,
I’m facing some issues while trying to set up Google OAuth2 credentials in n8n and would appreciate any help or guidance. I’m very new to n8n and using n8n cloud, so step-by-step instructions would be incredibly helpful! Here’s a detailed explanation of the problem:
Setup Details:
I’m trying to link my Google Apps to n8n to action my workflows
I’ve followed the official documentation and multiple tutorials to set up Google OAuth2 credentials on Google Cloud.
My OAuth Redirect URL in the Google Cloud Console is set to:
https://oauth.n8n.cloud/oauth2/callback as provided by n8n.
The Problem:
When I enter my Client ID and Client Secret in the n8n, I face this message (OAuth Authorization Error: There was a problem generating the authorization URL Request failed with status code 431). An if try to use Managed OAuth2 (recommended) when I Click: Sign in with Google, all that happens is (Credential successfully created inside your personal space) which doesn’t do anything for me and doesn’t actually link my Google account.
I’m a complete noob to n8n and I’d really appreciate it if someone could guide me step-by-step to resolve this issue.
If any additional information would help diagnose the issue, please let me know, and I’ll provide it.
Thanks in advance for your help!

1 Like

Error 431 (‘Request Header Fields Too Large’) usually means oversized browser cookies are interfering with the OAuth redirect. First step: clear all cookies for n8n and Google in your browser, then retry in a private/incognito window — this resolves it in most cases. For the redirect URL, make sure it’s exactly https://oauth.n8n.cloud/oauth2/callback with no trailing slash or extra characters. Regarding ‘Credential created in personal space’ with Managed OAuth2 — that’s expected behavior on n8n Cloud; the credential lives in your personal space, and you then select it in the node’s credential dropdown when building your workflow. If error 431 still appears after clearing cookies, try a completely different browser.

Hi @M_Giovanni Welcome!
Can you give this tutorial a shot?

1 Like