How to use service account authentication for Google Calendar

Hi community, I am trying to use service account authentication for the Google Calendar node, but it does not seem available where as it is for other Google node.
Any idea how to work around this? Is there any reason why Google Calendar node behaves differently, or can I just try to submit a PR to add the same settings to this node?

Some screenshots to show what I am talking about:

  1. Gmail allows service account (on top of OAuth2):

  2. Google Calendar offers only OAuth2:

  3. I can set only OAuth2 for Google Calendar account:

Thanks!

Hey,

I believe that problem I resolved with fixing wrong environment syntax (like does (not) use leading slash in URL). Can you see my env and see if your matches? If that doesn’t fix the problem, can you please send your envs (can be PM if sensitive)

My envs:

version: "3"

services:
  n8n:
      image: n8nio/n8n
      container_name: n8n
      restart: always
      ports:
        - "5678:${PORT}"
      labels:
        - com.centurylinklabs.watchtower.enable=true
      environment:
        - N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
        - N8N_PORT=${PORT}
        - N8N_PROTOCOL=https
        - NODE_ENV=production
        - WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
        - GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
        - NODE_FUNCTION_ALLOW_EXTERNAL=moment
        - EXECUTIONS_DATA_PRUNE=true
        - EXECUTIONS_DATA_PRUNE_TIMEOUT=604800
        - DB_SQLITE_VACUUM_ON_STARTUP=true
        - EXECUTIONS_DATA_MAX_AGE=7
      volumes:
        - ./.n8n:/home/node/.n8n
        - ./n8n-local-files:/files
      networks:
        - nginx
          
networks:
  nginx:
    external:
      name: nginx

envs:

DOMAIN_NAME=hryszko.dev
SUBDOMAIN=n8n
GENERIC_TIMEZONE=Europe/Berlin
PORT=5678

Hope helped!
Simon

Hey @florianjourda,

At the moment we don’t support the Service account for a few Google Services which can be found here: Google - n8n Documentation

Assuming Google Calendar supports it then it could just be a case of copying some of the code from the other nodes and testing that it works.

1 Like

Thanks @Shirobachi for your quick reply!
However I think the issue is what Jon mentioned below: I need to update the Google Calendar node to make it use service account authentication if I want to use it :slight_smile:

2 Likes

Thanks @Jon, very clear. I started looking at the code, and I get an idea of what needs to be changed. I will see what I can do :slight_smile:

1 Like

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