Issue with Google API Credentials in My n8n Web App

Hello everyone,

I hope this message finds you well. I am reaching out for assistance regarding an issue I am facing with my web application that hosts n8n using a Docker image (docker.n8n.io/n8nio/n8n).

The problem I am encountering is related to enabling the credentials for Google APIs (such as Google Drive, Google Calendar, Google chat and Google Sheets). I have already configured everything properly in the Google Cloud Console and set up the client ID and client secret in the authentication settings on Azure.

Despite my efforts, I am unable to activate the Google API credentials within my n8n instance. I would greatly appreciate any guidance or suggestions from anyone who might have faced a similar issue or has experience with n8n and Google API integrations.

Thank you in advance for your help!

Best regards,

hi there, what’s the error that you’re facing?

hey,
i have this error when i’m trying to log the credential

A few things that you need to check is:

  • have you put the correct callback URI?
  • have you make sure the email that you’re using is included in the test user
  • have you make sure that your n8n domain is included in the authorized domain

if there’s one thing you havent done from those 3, maybe that can be the issue

Okay solved the probem.
It was a missing https in my WEBHOOK_URL on Azure.
Thanks for your help appreciate it !

In your docker-compose.yml or .env file, make sure the following environment variables are correctly set:
env
N8N_HOST=your-domain.com
N8N_PORT=443
N8N_PROTOCOL=https
WEBHOOK_URL=https://your-domain.com/

:warning: Note: If WEBHOOK_URL or N8N_HOST are set incorrectly, the OAuth callback will fail — meaning Google won’t be able to redirect properly back to your n8n instance after login.

Glad that you fixed it, then can you kindly like my answer and if you think that it solves your problem or leads you there, to mark it as the solution thank you