Operator SSO (OIDC)
ToolFence Gate supports OpenID Connect Authorization Code + PKCE for operator login (the people who open Inbox and Approve / Deny).
This is host-level configuration: one IdP for the Gate deployment (including hosted app.toolfence.ai when TOOLFENCE_OIDC_* is set). It is not a separate login flow per workspace.
What is live vs roadmap
| Surface | Status |
|---|---|
Global operator SSO (TOOLFENCE_OIDC_*) |
Live — Sign in with SSO |
| Team → “OIDC issuer URL” on an org | Roadmap note — stored for IT / future per-org SSO; does not drive login today |
| SCIM member provisioning | Live on Business — see SCIM |
Configure (operator SSO)
export TOOLFENCE_OIDC_ISSUER=https://your-idp.example.com
export TOOLFENCE_OIDC_CLIENT_ID=...
export TOOLFENCE_OIDC_CLIENT_SECRET=... # optional for public clients
export TOOLFENCE_OIDC_REDIRECT_URI=https://app.toolfence.ai/v1/auth/oidc/callback
Optional: scopes, role claim, and default role via TOOLFENCE_OIDC_SCOPES, TOOLFENCE_OIDC_ROLE_CLAIM, and TOOLFENCE_OIDC_DEFAULT_ROLE.
Register the redirect URI on your IdP (Okta, Auth0, Keycloak, Entra, Google, and similar).
When OIDC is configured, auth is required and the UI shows Sign in with SSO.
Flow
- Browser →
GET /v1/auth/oidc/login→ IdP - IdP → callback with
code+state - Server exchanges the code, upserts the user, and creates a session
- Browser stores the session and opens Inbox
Username comes from email (or preferred username / subject).
Role comes from the configured role claim when present; otherwise the default role.