Single sign-on

Configure Entra ID, another OpenID Connect provider or GitHub, and map their groups to roles.

People sign in to Synaxis only through single sign-on. Synaxis keeps no passwords, except the one break-glass administrator for emergencies. You can offer several providers; the sign-in page lists them in the order you give.

Provider kinds

Kind Use for Groups come from
entra Entra ID, one tenant The groups claim: group object ids
oidc Any other OpenID Connect provider The claim you name (groups by default): group names as the provider sends them
github Signing in with GitHub (github.com or GitHub Enterprise Server) The person's teams, as org/team

Provider settings

Setting Means
Name The provider's name in URLs: letters, digits and - (sso by default)
Kind entra, oidc or github
DisplayName The label on the sign-in page
TenantId Entra ID: the tenant
Authority OpenID Connect: the issuer address. Entra ID: made from the tenant when empty. GitHub: your GitHub Enterprise Server address (empty for github.com)
ClientId The client id Synaxis is registered with
ClientSecretRef The name of the stored secret holding the client secret
ClientSecretFile A mounted file holding the client secret, for the first start before secrets are stored
GroupsClaim The claim group memberships arrive in (groups by default)

Register each provider with the redirect URI <public URL>/auth/callback/<Name>.

To configure providers

Providers are server settings under Auth:Providers, read at start. Give them in any of these ways:

  • Docker Compose: environment variables in compose.override.yaml, such as SYNAXIS_Auth__Providers__0__Kind: entra (one index per provider). First start has a complete example.

  • Helm: the chart's config.settings value, with the client secret mounted through extraVolumes.

  • Configuration as code: the auth section, with client secrets named by secretRef:

    spec:
      auth:
        providers:
          - { name: sso, kind: entra, tenantId: "<tenant id>", clientId: "<client id>", clientSecret: { secretRef: entra-client } }
        roleMappings:
          - { group: "<administrators' group id>", roles: [admin] }
          - { group: "<curators' group id>", roles: [curator] }
    

Restart the replicas after a change. Signing in starts a console session that lasts 8 hours from the last use, and 24 hours at most.

Map groups to roles

Auth:RoleMappings (or roleMappings in the configuration file) maps a group to roles. The roles are admin, curator, auditor and user; everyone who signs in has user.

Field Means
Group An Entra group object id, another provider's group name, or a GitHub org/team
Roles The roles the group gives

Mapped roles are replaced at every sign-in, so removing someone from the group upstream removes the role at their next sign-in. Roles given by hand in the console are kept. Users and roles shows the mappings under Group mappings, read-only.

Tip: Map at least one group to admin; the setup checklist's Map a sign-in group to a role (Auth:RoleMappings). item stays open until you do.

Other OAuth clients

CodeWrightAI and the synaxis CLI are built-in clients and need no setup. To let another MCP client sign people in, list it under Auth:Clients with its client id and exact redirect URIs (a loopback URI matches any port). See Service accounts and tokens.

See also