Skip to content
Sign in Create account

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

  • RelayState string
    Length: at most 2048 characters
  • SAMLResponse string required
    Length: at least 1 characters

Generated sample

{
  "RelayState": "string",
  "SAMLResponse": "string"
}

Responses

200 SAML assertion accepted and bearer token issued.

application/json object

  • api_token string required
  • email string (email) required
  • user_id integer required

Generated sample

{
  "api_token": "string",
  "email": "user@example.com",
  "user_id": 0
}
401 Error response.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

422 Invalid request, unconfigured SSO, or rejected assertion.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 Route rate limit exceeded.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string