KaireonAI supports both SAML 2.0 and OpenID Connect (OIDC) for enterprise single sign-on. SSO configuration is per-tenant.Documentation Index
Fetch the complete documentation index at: https://docs.kaireonai.com/llms.txt
Use this file to discover all available pages before exploring further.
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 | Yes | State parameter containing tenantId:nonce. The tenant is extracted exclusively from this parameter for security. |
The OIDC
client_id must be configured in the SSO settings. If oidcClientId is missing, the callback will return 400 Bad Request because the token audience cannot be verified, which would allow cross-client token reuse.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 | Yes | Tenant ID. The tenant is extracted exclusively from RelayState for security — there is no fallback to query parameters. |
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