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.
What you’ll need
Section titled “What you’ll need”- Access to a Google Cloud project in your Workspace organization (any project works; a dedicated
greenlightproject 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.
Create the OAuth client
Section titled “Create the OAuth client”-
Open console.cloud.google.com, pick your project, and go to APIs & Services → OAuth consent screen.
-
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. -
Go to APIs & Services → Credentials → Create credentials → OAuth client ID.
-
Choose application type Web application and name it
Greenlight. -
Under Authorized redirect URIs, paste the Redirect URI from the wizard. Select Create.
-
Copy the Client ID and Client secret from the confirmation dialog.
How roles work for Google
Section titled “How roles work for Google”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.
Back in the wizard
Section titled “Back in the wizard”-
The Issuer URL for Google is fixed — the wizard pre-fills
https://accounts.google.com. -
Paste the Client ID and Client secret.
-
Enter your Workspace domain (for example
acme.com). Sign-in is restricted to verified accounts in this domain via thehdclaim. -
Select Validate configuration. Greenlight fetches Google’s
/.well-known/openid-configurationand confirms the issuer, authorization endpoint, token endpoint, and JWKS all resolve. -
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.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Fix |
|---|---|
Error 400: redirect_uri_mismatch at sign-in | The 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 employee | Their account is outside the configured Workspace domain, or their Google email is unverified. |
| A Google user needs Admin or Org Owner rights | Roles 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. |