SSO Management API Overview

Overview

The SSO Management APIs let you programmatically manage tenant SSO configurations using a management key.

Management keys are generated from Company > Management Keys. Include the key in the Authorization header as a bearer token in the format <Project ID>:<Management Key>.

Use Cases

  1. Get Tenant SAML/OIDC Settings
  2. Configure SAML Settings
  3. Configure SAML Metadata URL
  4. Configure OIDC Settings
  5. Delete SSO Settings

Examples

Example - configure SSO via manual configuration

  1. Call the Configure SSO Settings API endpoint to apply idpURL, entityId, idpCert, and redirectURL to a tenant.

Example - configure SSO via metadata URL

  1. Call the Configure SSO Metadata URL API endpoint to apply the idpMetadataURL to a tenant.

Example - turn on SAML Single Logout

  1. Call Configure SAML Settings or Configure SAML Metadata URL with settings.singleLogoutEnabled set to true. Set settings.idpSingleLogoutUrl to the IdP's single logout URL for the HTTP-Redirect binding, or leave it out to take it from the IdP metadata. Both fields are optional: a request without them keeps the stored values, and an empty idpSingleLogoutUrl clears it.
  2. Call Get Tenant SAML/OIDC Settings and set spSingleLogoutUrl, Descope's single logout URL for the configuration, as the single logout URL in the IdP.

See Single logout (SLO) for the IdP setup and the logout API.

Was this helpful?

On this page