SAML Assertion Consumer Service
POST /api/sso/saml/acs
Accepts a form-encoded SAMLResponse and optional RelayState. The assertion is validated against the enabled tenant SSO configuration; on success the handler returns a Sanctum api_token, user_id and email as JSON. Assertion/configuration failures return 422.
This operation needs no authentication.
Request body
application/x-www-form-urlencoded object
RelayStatestringLength: at most 2048 charactersSAMLResponsestring requiredLength: at least 1 characters
Generated sample
{
"RelayState": "string",
"SAMLResponse": "string"
}Responses
200 SAML assertion accepted and bearer token issued.
application/json object
api_tokenstring requiredemailstring (email) requireduser_idinteger required
Generated sample
{
"api_token": "string",
"email": "user@example.com",
"user_id": 0
}401 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
422 Invalid request, unconfigured SSO, or rejected assertion.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 Route rate limit exceeded.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string