Summary: Contrax Enterprise can require company SAML or OIDC login via Clerk. Contrax enforces that IdP on dashboard pages and tenant APIs; you still create the connection in the Clerk Dashboard.
Enterprise SSO (Clerk SAML / OIDC)
Contrax uses Clerk for authentication. SAML and OIDC connections are configured in Clerk (Okta, Entra ID, Google Workspace enterprise, etc.). Contrax stores the workspace flag ssoEnforced and allowed email domains, then rejects dashboard pages and tenant API calls that did not arrive via that IdP.
Setup checklist
- Upgrade the workspace to Enterprise (sales / founder provisioning via
POST /api/organizations/enterprise). - In Clerk Dashboard → SSO connections, add the customer SAML or OIDC IdP. Social logins (Google/GitHub buttons) are not Enterprise SSO.
- In Contrax Workspace → Settings, add allowed domains (e.g.
acme.com). - Enable Enforce SSO.
Enforcement behavior
When SSO is on for an Enterprise org, dashboard pages and API access require:
- A Clerk SAML or enterprise OIDC external account on the user, and
- If domains are set, a matching email domain.
Password or social logins are redirected to /sso-required (HTML) or rejected with HTTP 403 (APIs). Founder admin emails listed in FOUNDER_ADMIN_EMAILS are break-glass and may still access.
Related: Enterprise plan · Security pack · Licensing & SLA