Skip to content
Sign in Create account

Start SAML sign-in at the configured IdP

GET /api/auth/sso/saml/initiate

Looks up the enabled SAML configuration for tenant_id, stores an opaque RelayState for ten minutes and redirects to the configured IdP SSO URL with that RelayState. The handler does not add a SAMLRequest parameter. The unauthenticated route is limited to 20 requests per minute per IP.

This operation needs no authentication.

Parameters

  • tenant_id integer query required
    Range: at least 1

Responses

302 Redirect to the configured IdP SSO URL.

422 Tenant or SAML configuration is invalid.

application/json object

  • error string required
429 Route rate limit exceeded.

Response headers

  • Retry-After string header
  • X-RateLimit-Scope string header

application/json object

  • error object required
    • code string required
      Value: "too_many_attempts"
    • scope string required
      Value: "route"
    • message string required
    • retry_after_s integer required
      Range: at least 1

text/html string

503 SAML state could not be stored.

application/json object

  • error string required
    Value: "saml_state_unavailable"