Skip to content
GantryCD

Google Workspace

At a glance — a platform-wide Google provider, built once at boot from environment variables. Access maps from the Workspace hosted-domain (hd) claim.

Configure

VariableRequiredNotes
GANTRYCD_SSO_GOOGLE_CLIENT_IDYesOAuth client id
GANTRYCD_SSO_GOOGLE_CLIENT_SECRETYesOAuth client secret
GANTRYCD_BACKEND_PUBLIC_BASE_URLYesbuilds the callback URL
GANTRYCD_SSO_GOOGLE_HOSTED_DOMAINNopre-filters the account chooser (a UX hint only — never trusted for access)

Register the single callback URL with the Google OAuth client, then restart.

Access rules

{"type": "google_hd", "domains": ["acme.com", "acme-eu.com"]}

Org access keys off the hosted-domain (hd) claim. Personal gmail.com accounts have no hd, so they can sign in but get no automatic org membership.

Troubleshooting

  • Sign-in works but no org access — the user’s hd must match a google_hd rule; personal accounts never will.
  • Provider missing after a Google outage — discovery runs once at boot; if Google was briefly unreachable the provider is skipped rather than crashing the backend. Restart to register.

Internals

SSO Configuration.