Skip to content
Sign in Create account

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_verified boolean

    Per-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_map object or null
  • enabled boolean
  • idp_certificate string or null
  • idp_entity_id string or null
    Length: at most 512 characters
  • idp_slo_url string (uri) or null
    Length: at most 2048 characters
  • idp_sso_url string (uri) or null
    Length: at most 2048 characters
  • oidc_client_id string or null
    Length: at most 512 characters
  • oidc_client_secret string or null
    Length: at most 2048 characters. Write only
  • oidc_discovery_url string (uri) or null
    Length: at most 2048 characters
  • oidc_redirect_uri string (uri) or null
    Length: at most 2048 characters
  • protocol string
    One of: "saml", "oidc"
  • scim_enabled boolean

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_verified boolean required

    The effective per-IdP missing-claim exception value after this update.

  • enabled boolean required
  • sso_config_id integer required
  • warning string

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

  • 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 The request was rate limited. API-generated responses are JSON;

Response headers

  • Retry-After string header

    Seconds to wait before retrying, when provided.

  • X-RateLimit-Scope string header

    Identifies the scope of the request limit, when provided.

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