SSO / OIDC
Let people sign in to Synth with their Google Workspace or Okta account. Start with automatic account creation and manage their roles in Synth. Each Project has its own default role for new members; an unconfigured Project always grants No access.
Synth supports one active OpenID Connect provider per deployment. SSO requires
a Business license with the sso entitlement. This Business deployment feature
supports regular local Users alongside provider-backed Users.
For interactive setup, follow Configure in the Synth UI. For deployment-managed settings, use Configuration Methods and Project defaults in CaSC. Existing users can link their password account.
Prerequisites
Before enabling SSO, prepare:
-
A public HTTPS Synth URL, for example
https://synth.example.com. -
This exact callback URL in the IdP:
https://synth.example.com/api/auth/oidc/callback -
A Business license with the
ssoentitlement. -
A local Owner recovery credential that you have tested.
-
Access to create the Google OAuth client or Okta application, or credentials supplied by your identity administrator.
-
An eligible work account that is new to Synth for the signup check. An existing account tests linking, not automatic account creation.
Keep local recovery login until production SSO and rollback have both been tested. Enabling SSO does not force every login through the IdP.
Fresh installations use RBAC v2 without migration flags. For an older, unmigrated installation, complete the RBAC migration first.
Start with sign-in and manual roles
For a first rollout, use Google Workspace or Okta, automatic account creation,
and manual provisioning. Each eligible new user becomes an instance Member.
Each Project independently supplies an initial role: No access (the default),
Viewer, Editor, or Project admin. No Project inherits another Project's
setting, and there is no global fallback.
An eligible person who has never used Synth can select Continue with SSO on the login page and create their account without an invitation. For Google, eligibility includes the allowed Workspace domain and verified email. For Okta, assign the person to the Synth application. Existing accounts use explicit linking; a matching email alone does not create or merge an account.
No group claims or JSON role mappings are needed for this setup. Keep Expert configuration closed unless you need provider-managed authorization or protocol overrides. Existing expert settings are preserved when you save the simple form.
Configure in the Synth UI
Open Global Settings → SSO as an Owner or Admin. The page shows whether settings are Managed in this UI or Managed by CaSC. For UI setup, leave SSO out of your Helm/CaSC declarations; no Helm SSO settings are needed.
Set the external instance URL with synth.publicUrl in Helm or
SYNTH_PUBLIC_URL. Use Copy callback URL to obtain the address to register
with your provider. The callback field is read-only. Before first-time setup,
correct the public URL in your deployment if the callback shows the wrong host,
then reload. Existing connections retain their saved callback; an instance URL
change requires updating the stored SSO callback and the provider registration
together.
Google Workspace setup
- In Google Cloud, select your organization’s project and configure its Google Auth Platform branding and audience. Choose Internal when the project belongs to your Workspace organization and you want only its members to authorize the app. See Google's audience settings.
- Under Google Auth Platform → Clients, create a Web application client. Add the copied Synth callback under Authorized redirect URIs. Save the client ID and client secret securely when Google displays them. See Google's OAuth client setup.
- In Synth, select Google Workspace and enter Client ID and Client
Secret. Use the
client_idandclient_secretvalues if your administrator supplied an OAuth client JSON file; do not paste the entire file into a field. - Enter Allowed Google Workspace domains, such as
example.com. Separate multiple allowed domains with commas, for exampleexample.com, example.org.
Synth sets Google's issuer and protocol defaults automatically and checks the
signed Workspace domain (hd) and verified email. Personal Gmail accounts do
not meet the Workspace-domain requirement. The domain check uses Google's
identity claim, not just the email suffix; see
Google's domain-validation guidance.
Google Workspace groups are not synchronized by this integration.
Okta setup
- In the Okta Admin Console, create an app integration with sign-in method OIDC - OpenID Connect and application type Web Application.
- Enable the Authorization Code grant, use client-secret authentication, and register the copied callback as a sign-in redirect URI.
- Assign the intended people or groups to this application. Record its client ID, secret, and exact authorization-server issuer. See Okta's app integration guide.
- In Synth, select Okta and enter Issuer URL, Client ID, and
Client Secret. The issuer must match the authorization server used by
this application; do not add or remove
/oauth2/defaultby guesswork.
Start sign-in from Synth’s Continue with SSO button. No groups scope or
role mapping is required when access stays manual. Assigning an Okta group to
the app determines who may sign in; it does not create a Synth Group or grant a
Project role.
Test and enable
- Keep Automatically create accounts on first sign-in checked. New setup forms enable it; existing saved configurations retain their choice.
- Under New members, review each Project's default. Use its Edit link to set initial access. An unconfigured Project always grants No access.
- Select Test sign-in, allow the popup, and sign in with an eligible work account. Review admission, account-linking needs, and prospective access in the result. The test uses your unsaved settings and does not save them, create Users, change access, consume invitations, or replace your session. Complete it within five minutes in the browser that started it.
- Select Save and enable SSO. For an already configured provider, the button is Save changes. A saved secret is never returned to the form; leaving it blank preserves the secret for the same issuer and client ID. Enter a new secret when changing applications or rotating credentials.
- In a separate browser profile, open the Synth login page and select Continue with SSO using an eligible account that does not already exist in Synth. Confirm the account is created and receives only the configured initial Project roles. Keep the local Owner session open during this check.
If you turn automatic creation off, an unknown identity cannot create a new account through the normal login button. Existing linked users can still sign in, and invited users must use their invitation. Turning it off does not delete accounts already created.
Optional controls
| Control | When to use it |
|---|---|
| Session duration | Set the maximum SSO session length in hours; default 1 hour, range 5 minutes to 7 days. Fractions such as 0.5 are supported. CaSC uses seconds. |
| Troubleshooting → Test connection | Check provider discovery and signing keys. This does not validate a full login or client credentials and saves nothing. |
| Expert configuration | Use another OIDC provider, override protocol settings, or configure provider-managed roles and identity requirements. Saved expert values are preserved on a simple-form save. |
| Expert configuration → Expert troubleshooting: preview role mappings → Preview access | Evaluate synthetic claims without changing Users or Groups. This is separate from Test sign-in. |
| Disable SSO | Stop new SSO logins. This separate action leaves local password login available; existing sessions are not all revoked immediately. |
Google and Okta presets use openid profile email scopes, with
client_secret_post for Google and client_secret_basic for Okta. Existing
protocol overrides are retained when loading or reselecting the current
provider. Changing authorization ownership in expert settings requires an
impact review before the affected manual records are archived or restored.
Settings managed by CaSC
The UI displays the effective saved configuration but never the stored secret. Managed by CaSC makes the fields, Save, and Disable controls read-only. Connection tests, test sign-in, and callback copying remain available. Change the declaration in your deployment configuration and redeploy.
To switch to UI management, remove the SSO declaration and redeploy. Synth
disables the former declarative provider and unlocks the editor; configure and
enable it again through the UI. Helm synth.sso.enabled: false removes its
generated declaration. An explicit raw CaSC
global_settings.sso: {enabled: false} instead keeps SSO disabled and
CaSC-owned. Unrelated imports leave UI-saved SSO settings unchanged.
Link an Existing Password Account (Google or Okta)
No migration or password reset is required. Start with provisioning mode
manual so existing access remains unchanged:
- An administrator verifies that the existing Synth User has the same work email returned and verified by the provider. Do not create a second User or send a new invitation to an already active account.
- The user signs in with their existing Synth password, then opens their account menu → Sign-in methods.
- Enter the current password, select Verify password and link SSO, and complete Google or Okta sign-in in the same browser within five minutes.
- The page confirms Linked. Test both password and SSO login. Existing account UUID, username, password, Project access, Groups, and API keys remain unchanged. Normal later SSO logins may refresh email/display-name labels.
Both proofs are required: email matching alone never merges accounts. The callback is one-use and tied to the initiating browser session and provider configuration. Unverified/mismatched emails, an identity bound to another User, changed passwords, disabled accounts, and expired flows fail closed. Start again after correcting the issue. A User already linked to a different identity cannot overwrite that link through this flow.
Once existing accounts are linked, administrators may explicitly move to provider-managed authorization with the access-impact preview and confirmation. That separate action can change roles/access; account linking itself cannot. Keep at least one local recovery Owner and do not enable mandatory SSO or remove regular password access for this rollout.
Default access for new members
As an Owner or Admin, open Global Settings → SSO → New members and click Edit beside a Project. You can also open Users → Project members and select the Project.
Under Default role for new members, choose Initial Project role and click Save default. This saves that Project's policy immediately; you do not need to save the SSO form as well.
| Initial Project role | Access given to a newly created SSO account |
|---|---|
| No access (default) | No grant for this Project; the person can still sign in |
| Viewer | Read this Project |
| Editor | Read and edit this Project |
| Project admin | Administer this Project; does not grant instance Admin or Owner |
For example, set Documentation to Viewer and Operations to No access. A new eligible user can read Documentation and cannot access Operations. A Project created later also starts with No access until you configure its default.
A default is copied once, into an ordinary editable manual grant, when a new SSO account is created. Changing defaults affects future accounts only. Removing or editing someone's grant stays effective across later logins. Existing local accounts, explicitly linked accounts and accepted invitations keep their existing access. Defaults are inactive in advanced provider-managed provisioning modes.
A user with no Project grants can sign in and see the no-access state, without seeing unauthorized Project names. Administrators can assign access later on the Users page. Disable prevents a user's return. Delete removes the account; an otherwise eligible identity may then sign up again using the current Project defaults.
If a default is labeled Managed by CaSC, its SSO-page link is View and the editor is read-only. Change the Project's declaration in CaSC instead. Provider ownership and Project-default ownership are independent: a CaSC-managed provider can still have UI-managed Project defaults.
Configure each Project in CaSC
Provider configuration and Project-default ownership are independent. Raw CaSC:
global_settings:
sso:
enabled: true
version: 3
issuer_url: https://accounts.google.com
client_id: example-client.apps.googleusercontent.com
client_secret: {env: SYNTH_OIDC_CLIENT_SECRET}
redirect_uri: https://synth.example.com/api/auth/oidc/callback
token_endpoint_auth_method: client_secret_post
auto_provision: true
provisioning_mode: manual
identity_requirements:
- {source: id_token, claim: email_verified, operator: equals, value: true}
- {source: id_token, claim: hd, operator: equals, value: example.com}
projects:
documentation:
access:
default_new_member_role: viewer
restricted:
access:
default_new_member_role: none
unconfigured: {} # No access when no UI default has been set.
For Okta, use your exact authorization-server issuer, your application client ID
and secret, client_secret_basic, and omit the Google-specific identity
requirements. Configure an OIDC Web Application with authorization code flow
and assign the intended users.
For Helm, the provider lives under synth.sso and each default under its own
Project. This example enables automatic signup with manual roles. Create the
synth-google-oidc Kubernetes Secret with a client-secret key in Synth's
namespace using your normal secret-management process; the value stays out of
the values file.
synth:
publicUrl: https://synth.example.com
sso:
enabled: true
issuerUrl: https://accounts.google.com
clientId: example-client.apps.googleusercontent.com
existingSecret: synth-google-oidc
redirectUri: https://synth.example.com/api/auth/oidc/callback
tokenEndpointAuthMethod: client_secret_post
scopes: [openid, profile, email]
autoProvision: true
provisioningMode: manual
identityRequirements:
- {source: id_token, claim: email_verified, operator: equals, value: true}
- {source: id_token, claim: hd, operator: equals, value: example.com}
projects:
- name: documentation
access:
defaultNewMemberRole: viewer
- name: restricted
access:
defaultNewMemberRole: none
Allowed role values are none, viewer, editor, and project_admin.
Merge these settings into your existing Project declarations. An explicit CaSC
declaration owns that Project's default, including none; the UI shows
Managed by CaSC and the API rejects edits. Removing a previously
managed declaration in the next successful full import clears it to No access
and unlocks the UI. An omitted UI-owned setting survives unrelated imports.
Importing exported explicit defaults makes those entries CaSC-owned.
The policy is stored privately at $SYNTH_HOME/project-access-defaults.json,
keyed by stable Project IDs. It is separate from provider secrets and ingested
Project configuration. Renames retaining the ID preserve policy; a new Project
reusing a name receives no inherited default. Missing policy means No access;
corrupt policy fails signup closed until an administrator restores or repairs it.
Upgrade and recovery
Existing installations gain no access automatically: absent defaults produce no
grants, and saved automatic-account-creation settings are preserved. Provider
secret rotation, disabling SSO, and restarts retain Project-default policies.
Existing manual grants remain ordinary RBAC records, usable by the previous
release. For rollback, first turn off automatic creation or disable SSO, retain
local Owner recovery, remove the new Project access declarations from the
older release's CaSC, and preserve the private policy file for a later upgrade.
Reverting code does not retract grants already created; review those separately.
Pending login attempts live in bounded process memory and use browser cookies. A restart, configuration change or request routed to another worker invalidates an attempt; start again. Use the supported single-web-process deployment for OIDC. Synthetic tests do not replace a real Google Workspace pilot and a separate real Okta pilot on the exact deployment candidate.
What SSO Does
OIDC proves who a person is. A separate provisioning mode decides whether Synth or the identity provider owns authorization.
Google or Okta identity
-> admission requirements
-> Synth User, identified by immutable (issuer, subject)
-> manual mode: initial Project defaults for a new account
or provider-managed mode: matching authorization mappings
-> effective instance role and Project access
This separation matters operationally:
- email and display-name changes update the User profile but never link a different identity;
- in provider-managed modes, IdP-derived access is replaced at every successful SSO login, so removed claims remove stale provider-owned grants;
- manual records are never mistaken for SSO records;
- SSO-managed fields are visible, attributed, and read-only in the UI; and
- SSO can grant Admin or Project roles, but never Owner.
Choose an authorization ownership mode
Choose this before creating mappings:
| Mode | Identity provider owns | Manual UI | Best fit |
|---|---|---|---|
manual | Identity only | Instance role, Project access, and Groups remain editable | Google Workspace or teams that manage authorization in Synth |
instance_role | Owner-excluded instance role | Instance role is locked; Projects and Groups remain editable | Central Admin/Member control with local Project management |
instance_and_projects | Instance role, direct Project roles, and mapped Group membership | All provider-owned fields are locked | Okta or another IdP that is the authorization source of truth |
Moving into or out of full authoritative mode requires an impact preview and explicit confirmation. The ownership change is applied immediately: manual records are archived or restored in the same operation. Claim-based mappings refresh on each linked User's next successful login.
Authorization mapping example
This Helm example makes Okta authoritative for instance and Project access. Use stable Project IDs and Group UUIDs from Synth, never names or paths.
synth:
sso:
enabled: true
issuerUrl: https://example.okta.com/oauth2/default
clientId: 0oa000000000EXAMPLE
existingSecret: synth-oidc
redirectUri: https://synth.example.com/api/auth/oidc/callback
scopes: [openid, profile, email, groups]
autoProvision: true
provisioningMode: instance_and_projects
providerId: workforce
policyVersion: "2026-10-07"
authorizationMappings:
- id: platform-editors
when:
source: id_token
claim: groups
operator: contains
value: platform-editors
authorization:
instanceRole: member
projectAssignments:
- scope: project
projectId: 11111111-1111-4111-8111-111111111111
role: editor
groupIds: [22222222-2222-4222-8222-222222222222]
- id: synth-admins
when:
source: id_token
claim: groups
operator: contains
value: synth-admins
authorization:
instanceRole: admin
projectAssignments: []
groupIds: []
defaultAuthorization:
instanceRole: member
projectAssignments: []
groupIds: []
No matching mapping receives the explicit default: Member with no Project
access. Omit defaultAuthorization for the same least-privilege result.
Configuration Methods
Use one source of truth:
| Method | Use it when | Field style |
|---|---|---|
| Global Settings → SSO | An administrator manages one deployment interactively | Provider form; optional expert controls |
Helm synth.sso | Kubernetes values are your source of truth | camelCase, such as issuerUrl |
Raw CaSC global_settings.sso | You already own the complete CaSC document | snake_case, such as issuer_url |
A non-empty synth.casc.raw or synth.casc.config replaces the generated CaSC
document; do not configure the same deployment in both places. To list stable
Project IDs for mappings, connect with an authorized customer-CLI API key and
run:
synth projects --json
Understand Claim Matching
A condition specifies where the claim comes from, its name, and an exact operator:
| Operator | Expected claim | Example |
|---|---|---|
equals | Scalar | boolean email_verified equals boolean true |
one_of | Scalar | string department is one of several strings |
contains | Array | array groups contains one exact group name |
Types are strict. The boolean true does not equal the string "true", and
contains does not split a comma-separated string. There is no regex, case
folding, or implicit email-domain matching.
One mapping can contain several when conditions. Every condition in that
mapping must match. Separate mappings are evaluated independently, and all
matching authorization results are combined using highest-role-wins rules.
For example, this mapping requires both an approved tenant and an editor group:
authorizationMappings:
- id: knowledge-editors
when:
- source: id_token
claim: tenant
operator: equals
value: production
- source: id_token
claim: groups
operator: contains
value: synth-knowledge-editors
authorization:
instanceRole: member
projectAssignments:
- scope: project
projectId: prj_0123456789abcdef01234567
role: editor
groupIds: []
Use Global Settings → SSO → Expert configuration → Expert troubleshooting: preview role mappings → Preview access to test synthetic claims before the first live login. Do not paste a real token or production personal data into the preview.
Helm Field Reference
The examples below use these synth.sso fields:
| Field | Default | Purpose |
|---|---|---|
enabled | false | Activates generated SSO CaSC |
issuerUrl | none | Exact HTTPS issuer returned by discovery and the ID token |
clientId | none | OIDC client ID and expected ID-token audience |
existingSecret | none | Kubernetes Secret containing the confidential client secret |
existingSecretKey | client-secret | Key inside existingSecret |
redirectUri | localhost development callback | Exact callback registered at the IdP; always set it in production |
tokenEndpointAuthMethod | client_secret_basic | client_secret_basic, client_secret_post, or none |
scopes | openid profile email | Requested scopes; must include openid |
autoProvision | true | Allows an admitted, previously unknown identity to create a Synth User |
allowedIdTokenAlgs | RS256 | Explicit asymmetric ID-token algorithms accepted by Synth |
identityRequirements | [] | Conditions that must all match before User or RBAC mutation |
provisioningMode | manual | Authorization ownership: manual, instance_role, or instance_and_projects |
providerId | primary | Stable identifier for the configured provider's identities and grants |
policyVersion | v1 | Operator-controlled revision label recorded with the policy |
authorizationMappings | [] | Claim-to-authorization rules |
defaultAuthorization | least privilege | Fallback when no mapping matches |
sessionMaxAgeSeconds | 3600 | Synth SSO session lifetime, from 300 to 604800 seconds |
idTokenMaxAgeSeconds | 3600 | Maximum accepted ID-token age, from 300 to 86400 seconds |
stateTtlSeconds | 600 | One-time login-state lifetime, from 60 to 1800 seconds |
stateCapacity | 1000 | Maximum pending login states, from 10 to 10000 |
discoveryCacheTtlSeconds | 300 | Discovery cache lifetime, from 30 to 3600 seconds |
jwksCacheTtlSeconds | 300 | Signing-key cache lifetime, from 30 to 3600 seconds |
clockSkewSeconds | 60 | Allowed token clock skew, from 0 to 300 seconds |
Confidential Google and Okta web applications require existingSecret.
tokenEndpointAuthMethod: none is only for an explicitly registered public
PKCE client and renders no client-secret reference.
Okta: Group-Mapped Access
This optional recipe makes Okta responsible for roles. For sign-in with manual Project roles, use Okta setup and Project defaults instead.
1. Create the Okta application
In the Okta Admin Console:
- Create an OIDC - OpenID Connect application with application type Web Application.
- Enable the Authorization Code grant. Synth adds PKCE S256 to each request.
- Add the exact Synth callback as a sign-in redirect URI.
- Assign only the intended people or groups to the application.
- Record the client ID and client secret.
- Record the exact authorization-server issuer. For a custom authorization
server it commonly includes
/oauth2/defaultor another server ID. - If Okta groups drive access, configure a bounded
groupsclaim in the ID token. Ensure the claim includes the exact group names used below.
See Okta's official guides for creating the OIDC web application, choosing the client authentication method, and adding a groups claim to the ID token. Restrict the group filter to the groups Synth needs; do not emit the entire directory when a narrower allowlist is possible.
Opening the issuer plus /.well-known/openid-configuration should return a
discovery document whose issuer exactly matches the configured value.
2. Store the client secret
Create the Kubernetes Secret in the same namespace as Synth. Never put the secret value in Git:
export SYNTH_NAMESPACE=synth
export OKTA_CLIENT_SECRET='replace-me'
kubectl -n "$SYNTH_NAMESPACE" create secret generic synth-okta-oidc \
--from-literal=client-secret="$OKTA_CLIENT_SECRET" \
--dry-run=client -o yaml | kubectl apply -f -
3. Configure Helm
This example gives:
synth-viewersViewer access to every Project;synth-knowledge-editorsEditor access to one Project; andsynth-global-adminsGlobal-admin access.
An assigned Okta user with none of those groups can authenticate but receives No access.
synth:
publicUrl: https://synth.example.com
sso:
enabled: true
issuerUrl: https://example.okta.com/oauth2/default
clientId: 0oa000000000EXAMPLE
existingSecret: synth-okta-oidc
existingSecretKey: client-secret
redirectUri: https://synth.example.com/api/auth/oidc/callback
tokenEndpointAuthMethod: client_secret_basic
scopes: [openid, profile, email, groups]
autoProvision: true
allowedIdTokenAlgs: [RS256]
provisioningMode: instance_and_projects
providerId: workforce
policyVersion: "2026-10-07"
identityRequirements: []
authorizationMappings:
- id: all-project-viewers
when:
source: id_token
claim: groups
operator: contains
value: synth-viewers
authorization:
instanceRole: member
projectAssignments:
- scope: all_projects
role: viewer
groupIds: []
- id: knowledge-project-editors
when:
source: id_token
claim: groups
operator: contains
value: synth-knowledge-editors
authorization:
instanceRole: member
projectAssignments:
- scope: project
projectId: prj_0123456789abcdef01234567
role: editor
groupIds: []
- id: global-admins
when:
source: id_token
claim: groups
operator: contains
value: synth-global-admins
authorization:
instanceRole: admin
projectAssignments: []
groupIds: []
# No matching group means No access.
defaultAuthorization:
instanceRole: member
projectAssignments: []
groupIds: []
sessionMaxAgeSeconds: 3600
idTokenMaxAgeSeconds: 3600
If your Okta application registers client_secret_post, change
tokenEndpointAuthMethod to match. The setting must agree with the client
registration.
4. Check expected outcomes
| Okta state | Synth result after login |
|---|---|
Assigned + synth-viewers | Viewer for all Projects |
| Assigned + editor group | Editor for the selected Project |
| Assigned + viewer and editor groups | Viewer everywhere; Editor on the selected Project |
| Assigned + admin group | Instance Admin |
| Assigned + no mapped group | User exists with No access |
| Not assigned to the Okta application | Okta denies the login |
| Locally disabled Synth User | Synth denies the login |
Google Workspace
Standard Google OIDC does not provide Workspace group membership as a general authorization feed. For a first rollout, use Google Workspace setup and per-Project defaults. The Helm recipes below cover alternatives:
- invite users and manage their access in Synth;
- auto-provision them with No access for later manual approval; or
- give new members Viewer access to explicitly selected Projects.
1. Create the Google OAuth client
In Google Cloud Console:
- Configure the OAuth consent screen. Prefer Internal when your Workspace organization and policy support it.
- Create an OAuth client with application type Web application.
- Add the exact Synth callback under Authorized redirect URIs.
- Record the client ID and client secret.
- Use issuer
https://accounts.google.com.
See Google's official OpenID Connect guide, OAuth client setup, and app audience settings. Google requires the redirect URI to exactly match an authorized URI. Newly created client secrets may only be shown once, so store the secret immediately.
Every Google recipe below requires two typed ID-token claims:
identityRequirements:
- source: id_token
claim: email_verified
operator: equals
value: true
- source: id_token
claim: hd
operator: equals
value: workspace.example
hd is the hosted Workspace domain. Checking only the email suffix is not a
safe Workspace boundary.
2. Store the Google client secret
export SYNTH_NAMESPACE=synth
export GOOGLE_CLIENT_SECRET='replace-me'
kubectl -n "$SYNTH_NAMESPACE" create secret generic synth-google-oidc \
--from-literal=client-secret="$GOOGLE_CLIENT_SECRET" \
--dry-run=client -o yaml | kubectl apply -f -
Recipe A: Invite-only users
Choose this only if accounts must be invited before they can join. Direct first-time SSO is denied; the user must begin from a Synth invite. The default UI setup instead enables automatic creation, with No access for unconfigured Projects.
synth:
publicUrl: https://synth.example.com
sso:
enabled: true
issuerUrl: https://accounts.google.com
clientId: 000000000000-example.apps.googleusercontent.com
existingSecret: synth-google-oidc
existingSecretKey: client-secret
redirectUri: https://synth.example.com/api/auth/oidc/callback
tokenEndpointAuthMethod: client_secret_post
scopes: [openid, profile, email]
autoProvision: false
allowedIdTokenAlgs: [RS256]
provisioningMode: manual
providerId: google-workspace
policyVersion: "2026-10-07"
identityRequirements:
- source: id_token
claim: email_verified
operator: equals
value: true
- source: id_token
claim: hd
operator: equals
value: workspace.example
authorizationMappings: []
defaultAuthorization:
instanceRole: member
projectAssignments: []
groupIds: []
sessionMaxAgeSeconds: 3600
For each user:
- Open Users (
/admin/users) as an Instance Admin. - Select Add User, enter the exact Workspace email, select the desired instance and Project access, and enable the invite option.
- Send the generated invite URL to that person through your approved channel.
- The user opens the invite and selects Continue with SSO.
- Synth requires an unexpired, unrevoked invite and exact verified-email equality, then binds the User to Google's immutable issuer and subject.
- Later logins can start from the normal SSO button.
The invited User's manual instance role, Project assignments, and Groups remain
intact because manual provisioning owns identity only.
Recipe B: Auto-provision with manual approval
Use the same configuration as Recipe A, but set:
autoProvision: true
provisioningMode: manual
authorizationMappings: []
defaultAuthorization:
instanceRole: member
projectAssignments: []
groupIds: []
Set every Project's new-member default to No access in the UI or explicitly
to none in CaSC. The empty defaultAuthorization Project list above does not
override Project defaults in manual mode. The first successful login then
creates the User with No access. An Instance Admin can assign access on the
Users page; that manual assignment is preserved on later SSO logins.
Recipe C: Every Workspace user is a Viewer
Keep Recipe B's Google provider configuration and manual role management. Set Viewer as the initial role on each Project new members should be able to read:
synth:
projects:
- name: documentation
access:
defaultNewMemberRole: viewer
- name: operations
access:
defaultNewMemberRole: none
Merge this into the existing Project entries. Newly created SSO accounts get Viewer on Documentation and No access on Operations. Existing accounts are unchanged; future Projects also start with No access. Administrators can later change or remove each person's access without it returning at the next login.
Keep the email_verified and hd requirements. This recipe does not use
defaultAuthorization or all_projects, which belong to recurring
provider-managed authorization.
Complete Raw CaSC Example
Use raw CaSC only when you manage the whole CaSC document. Raw CaSC uses snake_case and references the client secret through an environment variable.
First create a runtime Secret whose key is exactly
SYNTH_OIDC_CLIENT_SECRET:
kubectl -n synth create secret generic synth-runtime-secrets \
--from-literal=SYNTH_OIDC_CLIENT_SECRET="$OKTA_CLIENT_SECRET" \
--dry-run=client -o yaml | kubectl apply -f -
Then expose that Secret and include SSO in the complete raw document:
secrets:
existingSecret: synth-runtime-secrets
synth:
publicUrl: https://synth.example.com
casc:
raw: |-
global_settings:
sso:
enabled: true
version: 3
issuer_url: https://example.okta.com/oauth2/default
client_id: 0oa000000000EXAMPLE
client_secret:
env: SYNTH_OIDC_CLIENT_SECRET
redirect_uri: https://synth.example.com/api/auth/oidc/callback
token_endpoint_auth_method: client_secret_basic
scopes: [openid, profile, email, groups]
auto_provision: true
allowed_id_token_algs: [RS256]
provisioning_mode: instance_and_projects
provider_id: workforce
policy_version: "2026-10-07"
identity_requirements: []
authorization_mappings:
- id: global-admins
when:
- source: id_token
claim: groups
operator: contains
value: synth-global-admins
authorization:
instance_role: admin
project_assignments: []
group_ids: []
default_authorization:
instance_role: member
project_assignments: []
group_ids: []
session_max_age_seconds: 3600
id_token_max_age_seconds: 3600
state_ttl_seconds: 600
state_capacity: 1000
discovery_cache_ttl_seconds: 300
jwks_cache_ttl_seconds: 300
clock_skew_seconds: 60
Merge this block with the rest of your real CaSC content. Because raw CaSC replaces the generated document, the abbreviated example above would otherwise remove generated Projects, providers, credentials, and other global settings.
CaSC is authoritative. Disabling SSO, removing its secret reference, or
supplying an invalid supported configuration prevents stale SSO settings from
remaining active. The materialized $SYNTH_HOME/sso_config.json is owner-only
and is not copied into global.yaml.
Render and Deploy Helm
Render locally before applying:
helm lint ./deploy/charts/synth -f values.sso.yaml
helm template synth ./deploy/charts/synth \
--namespace synth \
-f values.sso.yaml > /tmp/synth-rendered.yaml
grep -n "SYNTH_OIDC_CLIENT_SECRET\|authorization_mappings\|identity_requirements" \
/tmp/synth-rendered.yaml
The render should contain env: SYNTH_OIDC_CLIENT_SECRET, never the secret
value. Deploy with your normal chart reference, for example:
helm upgrade --install synth "$SYNTH_HELM_CHART" \
--namespace synth \
-f values.sso.yaml \
--wait
Production Acceptance Test
Run these checks on your actual deployment with the provider you configured. Test connection checks discovery and signing keys; Test sign-in checks the provider round trip without creating an account. A normal first login is still required to verify automatic signup and initial access.
For the initial manual-role rollout:
- The SSO page shows SSO is configured, and Continue with SSO appears
on the login page. The status endpoint reports
configured: trueandentitled: true. - An eligible account that does not exist in Synth signs in and becomes an instance Member with exactly the configured per-Project defaults.
- A new account with all defaults at No access can sign in but sees no unauthorized Projects. A Google account outside the allowed Workspace domains, or an Okta account not assigned to the app, cannot join.
- Viewer access permits reading, and Editor access permits editing only the intended Projects. A Project admin does not become an instance Admin.
- Changing a Project default affects the next new account, not existing members. Changing or removing an individual's manual role survives another SSO login.
- An existing password account links explicitly and retains its password, Project access, Groups, and API keys. A matching email on normal SSO login cannot silently merge that account.
- Disabling a Synth User blocks new login and invalidates live User checks.
- After a restart, the provider configuration and Project defaults are still present, and local Owner recovery login still works.
If you enable optional invite-only or provider-managed authorization, also test those paths: an invited user must follow the matching invite; unmatched claims use the configured authorization fallback; removing an IdP claim removes only the relevant provider-owned grant on the next login; and SSO must never grant Owner. Switching full management on or off must preview the archive/restore impact on manual records.
How Users and Access Change Over Time
| Event | Result |
|---|---|
| First eligible login with automatic creation and manual roles | Creates an instance Member and copies each Project's initial role once; unset means No access |
| Project default changes | Affects future new accounts only; existing accounts and linked accounts keep their access |
| An individual's initial grant is changed or removed | The manual change survives later logins; defaults are not reapplied |
| First mapped login with automatic creation and provider-managed roles | Creates a Synth User and authorization records owned by the configured provider |
| Unmapped login in a provider-managed mode | Uses that policy's default authorization; least privilege is Member with No access |
First direct login with autoProvision: false | Denied unless the immutable identity is already linked |
| First login from a valid invite | Exact verified email links the invite to immutable issuer/subject |
| IdP group is added or removed | SSO-managed access changes at the next successful login |
| Admin changes a manual field | Allowed only when the provisioning mode does not own that field |
| User email changes at the IdP | Profile email updates; account identity does not change |
| User is disabled in Synth | Login is denied and live User checks invalidate existing access |
| SSO is disabled | Provider-owned authorization is removed, archived manual records are restored, and new OIDC logins stop; already issued cookies are not mass-revoked |
Provider changes are not continuous directory synchronization. An existing SSO
session can remain valid until sessionMaxAgeSeconds unless the Synth User is
disabled or deleted.
Troubleshooting
| Symptom | What to check |
|---|---|
| SSO button is missing | Business sso entitlement and /api/auth/oidc/status |
| Callback URL shows the wrong host | For new setup, correct synth.publicUrl or SYNTH_PUBLIC_URL and reload. An existing connection retains its saved callback; update its configuration and provider registration together |
| Redirect mismatch | Register the copied callback on the same provider client ID. Scheme, host, port, path, and trailing slash must match |
| Connection test fails | Public HTTPS discovery, exact discovery issuer, public JWKS, and allowed algorithm |
| Connection test passes but sign-in fails | Run Test sign-in; check the client ID, secret, registered callback, and provider app assignment. Discovery alone does not check credentials |
| Test sign-in does not open | Allow popups for Synth. Start a fresh test from the same signed-in admin browser |
| Token exchange fails | Correct application credentials and registered client method. Google and Okta presets select Post and Basic respectively; inspect overrides under Expert configuration |
| Google identity is denied | email_verified is boolean true; hd is present and exactly matches |
| Account already uses this email | Sign in with the existing password, then use account menu → Sign-in methods to link the work identity; use the original invite for a pending account |
| Okta group mapping does not match | Claim is in the configured source, is an array, and contains the exact case-sensitive value |
| Login succeeds but no Projects appear | Review per-Project defaults and the user's direct/Group access. No access is valid; changing a default does not grant access to this existing account |
| Cannot find where to change a default | Global Settings → SSO → New members → Edit beside the Project, or Users → Project members → Default role for new members |
| A default is read-only | Managed by CaSC: change access.defaultNewMemberRole in Helm or access.default_new_member_role in raw CaSC |
| Changed a default but a user kept their old role | Defaults apply once at account creation. Edit this person's direct role in Users → Project members |
| Selected-Project mapping fails | Use a current stable prj_... ID, not a name or path |
| Invite-linked SSO fails | Invite is pending and unexpired; IdP email is verified and exactly equals the invite email |
| User changed IdP email and a duplicate appeared | Identity is issuer/subject, not email; inspect whether the IdP issued a new subject |
| Claim removal did not affect an existing session | Reconciliation occurs at the next successful login; log out and sign in again |
Operational Limits
- One OIDC provider is active per deployment. Google and Okta cannot be enabled simultaneously on the same instance.
- The supported chart runs one web process. Multiple web replicas require a shared atomic callback-state backend.
- Provider group and assignment changes reconcile on login, not continuously.
- Disabling SSO does not revoke every existing provider or Synth session.
- Standard Google OIDC is not Google Directory or SCIM group synchronization.