/v1/mgmt/sso/idp/app/saml/createAuthorization
Descope Project ID and Management Key Project ID:Management Key as bearer token.
In: header
Request Body
application/json
1 <= length <= 254length <= 100000length <= 2097152Must not resolve to an internal or private address.
length <= 10000length <= 1000000length <= 150length <= 10000Custom attributes as key-value pairs. Keys must be strings; values can be strings, numbers, booleans, or arrays.
{
"attribute-key": "attribute-value"
}length <= 2097152assignedRoleIds lists project-level roles that grant access to this application. A user holding any of them can access it, in addition to users assigned directly or through their tenant. Additive: it never removes access, so it only changes the outcome for projects that deny applications by default. Tenant scoped roles are rejected.
SAML Single Logout (SLO). When on, the app's SP can log the user out with a signed LogoutRequest, and the app is sent a LogoutRequest, naming the user by the app's NameID, when a logout reaches the user's apps (the user's own logout of all devices, a force logout when the app's notifyOnForceLogout is on, or another app's logout that propagates). Every app with single logout on that the user can sign in to is sent one, including apps the user hasn't signed in to; limit that with the user's app assignments. A logout without a browser (the user's own logout of all devices, a force logout) reaches only apps with the 'soap' binding. Off by default. An update without it turns single logout off.
The SP's SingleLogoutService URL. Required when single logout is on and the app is configured manually; empty takes it from the SP metadata. With the 'soap' binding, must not resolve to an internal or private address.
The binding of spSingleLogoutUrl: 'redirect', 'post' or 'soap' (server to server, https only). Default (empty): with spSingleLogoutUrl, 'redirect'; without it, from the SP metadata ('soap' when it offers an https SOAP endpoint, else 'redirect', else 'post'). A binding set without spSingleLogoutUrl picks the SP metadata endpoint with that binding.
What a logout the app's SP starts reaches: 'none' (default) only ends the user's session and notifies no other app, 'allApps' also logs the user out of their other apps (OIDC apps only when every session ended).
Which Descope sessions a logout the app's SP starts ends: 'session' (default) the sessions the LogoutRequest's SessionIndex values name, 'allSessions' every session of the user. With 'session', a LogoutRequest with no SessionIndex, or with one Descope didn't issue, ends the browser's Descope session when the browser has one for the user, else every session of the user its NameID names; one with several SessionIndex values that aren't all Descope's ends every session of the user. A visit to the logout URL without a LogoutRequest always ends every session of the user.
Whether a Force Logout of the user (the Console's, or Logout User from All Devices in this API) sends the app a LogoutRequest. Needs single logout with the 'soap' binding, since a force logout has no browser. Off (default): a force logout doesn't notify the app.
Create SAML Application within a project
This endpoint creates a SAML Application within your Descope project.
See Also
- Review our documentation around Applications within Descope.
curl -X POST "https://api.descope.com/v1/mgmt/sso/idp/app/saml/create" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "id": "string"}export interface Response {id?: string}Create SSO application role POST
Create a role scoped to an SSO application, using a valid management key. Role permissionIds must reference permissions of the same application.
Delete SSO application custom attribute definitions POST
Delete SSO application custom attribute definitions, using a valid management key.