Hello! I need a client to connect their Google Calendar to my n8n instance.
When I send them the Google pop-up link, they get an error—what can I do?
Hey @Digitrapy, while you wait for a response, here are some things that might help:
Suggested resources
Automatically matched to your question.
Docs:
Forum:
@everlein, @Tushar_darji - you’ve helped with similar issues before, can you take a look?
Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.
What error? Please provide full context. How are we supposed to help when you did not state the exact error
Hi @Digitrapy, welcome! Does Sign in with Google work when you complete it yourself from n8n’s credential screen, or does it fail there too?
Please share the exact error, whether it appears on Google’s page or after returning to n8n, and your n8n version plus Cloud/self-hosted setup. Share the error text with codes/tokens removed, rather than the pop-up URL.
Most of the time the error your client sees comes from Google’s consent screen, not from n8n: if the Cloud project’s OAuth consent screen is still in Testing mode and their Google address isn’t on the Test users list, they get Error 403: access_denied (shown as “app not verified” / “access blocked”). Adding their address under APIs & Services > OAuth consent screen > Test users, or publishing the app, makes the popup complete.
Two other things worth checking while you’re there: the redirect URI registered on the OAuth client must match your instance’s public URL exactly (WEBHOOK_URL, including the trailing path), and the credential is per-user — they complete the consent themselves and get their own token, so handing them your credential won’t work. If their account is a Google Workspace one, an admin policy blocking unverified third-party apps can reject the consent even with them listed as a test user; in that case the app has to be published and verified, or added as internal to their domain.
Hi @Digitrapy, a few things worth checking, since this error usually comes from the Google side:
1. In Google Cloud, the Authorized redirect URI on your OAuth client has to exactly match the OAuth Redirect URL shown in the n8n credential (same https, domain and path, no trailing slash differences).
2. Make sure the Google Calendar API is enabled for that project under APIs & Services > Library.
3. If the consent screen is in Testing, your client’s Google account must be added under Test users, otherwise they get an access_denied / “app not verified” error. Or publish the app.
4. Check the scopes include the Calendar ones (calendar / calendar.events).
5. If self-hosted, set WEBHOOK_URL and N8N_HOST to your public https URL, otherwise n8n builds a wrong redirect URL (often a localhost one).
If you can share the exact error text (without tokens), that would narrow it down fast. Happy to help dig in if it’s still failing.
The error occurs because I tried to copy the URL from the OAuth2 popup window that n8n opens and send it to my client via chat on another computer. When the client opens that URL in their browser, they get an error because they don’t have the session cookie or the active session from my n8n instance that I have locally. If I open the popup window on my own PC, it works fine. The problem is that I need the client to connect their own Google Calendar remotely, without giving me their password or doing a video call. How should I manage this flow for a remote client?
Hi! I’m using n8n locally.
If I press “Sign in with Google” from my own computer, the credential works fine. The problem arises when I try to copy the OAuth pop-up URL and send it to my client via chat so they can open it from their browser.
They get a session or token error because the OAuth request requires the active browser cookie from my n8n.
Is there a recommended way in n8n to allow a client to authorize their Google Calendar account remotely and independently?
@Digitrapy, check the OAuth Redirect URL in your credential. If it contains localhost, Google’s callback goes to your client’s computer, not yours. Remote OAuth needs a callback their browser can reach, and n8n’s login/credential permissions still apply.
If you only need access to their calendar, you can keep n8n local and use the Google account you’ve already connected:
- The client opens Google Calendar → Settings and sharing → Shared with → Add people and groups, and adds that account. Choose read access, or Make changes and see event details if the workflow needs to edit events.
- Accept the sharing invitation, then select their calendar in n8n. If it isn’t listed, use Calendar → By ID with their calendar ID.
This grants your connected account access to their calendar; it doesn’t create a separate OAuth connection as the client.
Do you need that separate client OAuth connection without an n8n login? If so, please share your n8n version and edition so we can choose the appropriate flow.
Thank you for the clarification! I understand what you’re mentioning.
However, due to project requirements, I cannot use the option of having the client share their calendar with me.
Is there any other alternative or method in n8n for the client to authorize their own Google Calendar account remotely, without having to share their calendar and without having to access my n8n? Or is sharing the calendar the only possible way in this case?
The popup link can’t work from another browser, and that’s expected when browser binding is on. n8n sets an n8n-oauth-binding cookie in the browser that starts the OAuth flow. When the callback arrives from a browser without that cookie, n8n rejects it with “This OAuth flow was started in a different browser. Please retry from your original window.” Your client’s browser never got that cookie, so copying the URL fails no matter how the redirect is set.
Two checks on your instance. Is N8N_OAUTH_BROWSER_BINDING set to true? It defaults to false. If it’s off, the cause is something else, most likely a redirect URI pointing at localhost. Also, can the client’s browser reach your n8n at a public HTTPS address? A local instance can’t receive their callback at all.
Tell me which setting you have and I can narrow it down. If you’d rather have this done than DIY, I can do this as a small fixed-price job; happy to scope it.