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
- Get Tenant SAML/OIDC Settings
- Configure SAML Settings
- Configure SAML Metadata URL
- Configure OIDC Settings
- Delete SSO Settings
Examples
Example - configure SSO via manual configuration
- Call the Configure SSO Settings API endpoint to apply
idpURL,entityId,idpCert, andredirectURLto a tenant.
Example - configure SSO via metadata URL
- Call the Configure SSO Metadata URL API endpoint to apply the
idpMetadataURLto a tenant.
Example - turn on SAML Single Logout
- Call Configure SAML Settings or Configure SAML Metadata URL with
settings.singleLogoutEnabledset totrue. Setsettings.idpSingleLogoutUrlto 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 emptyidpSingleLogoutUrlclears it. - 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.
Update Tenant Session Settings POST
### Update session settings for a tenant This endpoint allows you to update the session settings of a given tenant. ### See Also - See [tenant session settings](/customize/tenant#session-management) for details about tenant session settings.
Get Tenant's SAML/OIDC Settings GET
### Get the current SAML/OIDC configuration settings of a tenant, using a valid management key. This API endpoint allows you to get the current SAML/OIDC configuration settings of a tenant. ### See also - See [SSO Configuration](/sso) for further details on managing SSO Configurations on a tenant.