Skip to content

IdP setup: Google Workspace

Admin guide · Install wizard

This walkthrough pairs with the IdP step of the Greenlight install wizard. You’ll create an OAuth client in the Google Cloud console, copy its credentials back into the wizard, and validate the connection. Plan for about five minutes; everything happens in the browser — no CLI.

  • Access to a Google Cloud project in your Workspace organization (any project works; a dedicated greenlight project keeps things tidy).
  • The Redirect URI shown in the wizard’s IdP step.
  • Your Workspace primary domain (for example acme.com) — the wizard restricts sign-in to it.
  1. Open console.cloud.google.com, pick your project, and go to APIs & Services → OAuth consent screen.

  2. Choose user type Internal so only accounts in your Workspace can sign in. Fill in the app name (Greenlight) and a support email, then save.

  3. Go to APIs & Services → Credentials → Create credentials → OAuth client ID.

  4. Choose application type Web application and name it Greenlight.

  5. Under Authorized redirect URIs, paste the Redirect URI from the wizard. Select Create.

  6. Copy the Client ID and Client secret from the confirmation dialog.

Google ID tokens carry no group claim, so Greenlight does not map Google groups to roles. For Google Workspace orgs, roles are managed in the Greenlight dashboard: everyone who signs in starts as a Builder, and an Org Owner promotes people to Admin or Org Owner on the Users page. A role set there persists — it is not overwritten at the next sign-in.

  1. The Issuer URL for Google is fixed — the wizard pre-fills https://accounts.google.com.

  2. Paste the Client ID and Client secret.

  3. Enter your Workspace domain (for example acme.com). Sign-in is restricted to verified accounts in this domain via the hd claim.

  4. Select Validate configuration. Greenlight fetches Google’s /.well-known/openid-configuration and confirms the issuer, authorization endpoint, token endpoint, and JWKS all resolve.

  5. Save & continue. The client secret goes straight to Key Vault; it is not stored in the database or shown again. After the first people sign in, assign their roles under Users in the dashboard.

SymptomFix
Error 400: redirect_uri_mismatch at sign-inThe redirect URI in the OAuth client doesn’t exactly match the wizard’s value (scheme, host, and path must all match).
Sign-in rejected for a valid employeeTheir account is outside the configured Workspace domain, or their Google email is unverified.
A Google user needs Admin or Org Owner rightsRoles are managed in the dashboard for Google. An Org Owner sets the role on the Users page; it takes effect immediately and persists across sign-ins.