GET /api/v1/sso
Get the SSO configuration for the tenant. Sensitive fields (client secrets, SAML certificates) are redacted. Admin only.Response — Not Configured
Response — Configured
POST /api/v1/sso
Configure SSO or generate an auth URL. Admin only.Actions
configure — Save SSO configuration
get_auth_url — Generate an OIDC authorization URL
GET /api/v1/sso/callback
OIDC authorization code callback. This endpoint is called by the identity provider after the user authenticates. It exchanges the authorization code for tokens, verifies the ID token signature via JWKS, and provisions or logs in the user.Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Authorization code from the IdP |
state | string | No | State parameter (should contain tenantId:nonce) |
tenant | string | No | Tenant ID (fallback if not in state) |
Response
POST /api/v1/sso/callback
SAML POST binding (Assertion Consumer Service). Receives the SAML response from the identity provider, validates the assertion, and provisions or logs in the user.Request Body (form-encoded or JSON)
| Field | Type | Required | Description |
|---|---|---|---|
SAMLResponse | string | Yes | Base64-encoded SAML response |
RelayState | string | No | Tenant ID |
Response
Security
- OIDC ID tokens are verified using JWKS public key discovery
- Issuer, audience, and expiration are validated
- SAML assertions are signature-verified against the configured certificate
- SSO callbacks are rate limited to 30 requests/min