OIDC Single Sign-On

ManyLayers supports OIDC-based SSO for both API key authentication and workspace login. Connect your existing identity provider — Okta, Azure AD, Google, Keycloak, or any OIDC-compliant IdP.

Configuration

Authentication order

ManyLayers evaluates authentication in this order:
  1. API key — Authorization: Bearer ml-... prefixed keys
  2. OIDC JWT — Authorization: Bearer <jwt> validated against your configured issuer
  3. Session cookie — workspace browser sessions
  4. Personal Access Token — Authorization: Bearer ml_pat_... tokens

SSO login flow

  1. Your users click “Sign in with SSO” in the workspace UI
  2. The UI redirects to your OIDC provider with the configured spa_client_id
  3. After authentication, the provider redirects back with an authorization code
  4. The UI calls POST /auth/sso with the OIDC token
  5. ManyLayers validates the token, auto-provisions the user, and returns a session

Team and role mapping

The team_claim and role_claim extract team membership and role from the JWT. The team_mapping maps your IdP group names to gateway teams. Users with the admin_role value get full admin access.

SCIM 2.0 User Provisioning

SCIM enables automated user lifecycle management — provision new users and deactivate departing ones directly from your IdP without manual administration.

Supported operations

SCIM authentication

SCIM endpoints use a Bearer token that is org-scoped and managed by org admins:

SCIM endpoints

Example: provision a user

All SCIM responses use Content-Type: application/scim+json.

Next steps