Headscale “users” can be authenticated using Google Workspace logins. This only applies to nodes that do not have tags. Nodes with tags do not get logged in/out via OIDC.

Google Config

Headscale Config

In your config.yaml, include these settings:

oidc:
  only_start_if_oidc_is_available: true
  issuer: "https://accounts.google.com"
  client_id: "<Value of "Client ID" from Google>"
  client_secret: "<Value of "Client secret" from Google>"
  expiry: 10d
  scope: ["openid", "profile", "email"]
  extra_params:
    domain_hint: "<Your Google Workgroups Domain>"
  allowed_domains:
    - "<Your Google Workgroups Domain>"
  strip_email_domain: true