Update SSO configuration
PUT /api/sso/config
Creates or updates the authenticated tenant's SSO configuration; the route requires a verified owner/admin bearer with the write ability and sso.config-write permission. Protocol, IdP/OIDC metadata, and SCIM settings are validated, and outbound URLs are checked before storage. The client secret is write-only and is never returned; unsafe or invalid fields return 422.
Authenticate with a portal session token.
Request body
application/json object
accept_signins_without_email_verifiedbooleanPer-IdP exception. On creation, omission defaults to false. On update, omission leaves the existing value unchanged. When true, a missing email_verified claim is accepted, but a present false or non-boolean value is rejected. For tokens with a missing claim, issuer and subject are bound to the first account; an unbound subject cannot use an existing email, and later email changes for a bound subject are rejected. Tokens with Boolean email_verified=true keep the verified-email path for first account linking; later logins remain bound to that issuer and subject. Enable only if the provider confirms it verifies email addresses.
attribute_mapobject or nullenabledbooleanidp_certificatestring or nullidp_entity_idstring or nullLength: at most 512 charactersidp_slo_urlstring (uri) or nullLength: at most 2048 charactersidp_sso_urlstring (uri) or nullLength: at most 2048 charactersoidc_client_idstring or nullLength: at most 512 charactersoidc_client_secretstring or nullLength: at most 2048 characters. Write onlyoidc_discovery_urlstring (uri) or nullLength: at most 2048 charactersoidc_redirect_uristring (uri) or nullLength: at most 2048 charactersprotocolstringOne of:"saml","oidc"scim_enabledboolean
Generated sample
{
"accept_signins_without_email_verified": true,
"attribute_map": {},
"enabled": true,
"idp_certificate": "string",
"idp_entity_id": "string",
"idp_slo_url": "https://example.com",
"idp_sso_url": "https://example.com",
"oidc_client_id": "string",
"oidc_client_secret": "string",
"oidc_discovery_url": "https://example.com",
"oidc_redirect_uri": "https://example.com",
"protocol": "saml",
"scim_enabled": true
}Responses
200 Updated SSO configuration ID and enabled state; an enabled SAML configuration without a certificate may include a warning.
application/json object
accept_signins_without_email_verifiedboolean requiredThe effective per-IdP missing-claim exception value after this update.
enabledboolean requiredsso_config_idinteger requiredwarningstring
Generated sample
{
"accept_signins_without_email_verified": true,
"enabled": true,
"sso_config_id": 0,
"warning": "string"
}401 Missing or invalid bearer token.
application/json object
Any keys are accepted.
403 Authenticated caller lacks the required permission, ability, or role.
application/json object
Any keys are accepted.
422 Field validation failed or an outbound URL was rejected.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 The request was rate limited. API-generated responses are JSON;
Response headers
Retry-Afterstring headerSeconds to wait before retrying, when provided.
X-RateLimit-Scopestring headerIdentifies the scope of the request limit, when provided.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string