POST
/v1/mgmt/sso/idp/app/oidc/create

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Request Body

application/json

id?string
name*string
Length1 <= length
description?string
enabled?boolean
logo?string
loginPageUrl?string
claims?array<string>
string
forceAuthentication?boolean
backChannelLogoutUrl?string

Must not resolve to an internal or private address. Must use https.

jwtBearerSettings?object

On update, omit to keep the app's current JWT bearer settings, or send {} to clear them.

customIdpInitiatedLoginPageUrl?string
sessionSettings?object

The app's own token lifetimes and JWT templates. On update, omit to keep the app's current session settings, or send {"enabled": false} to use the project's.

clientType?"" | "confidential" | "public"

How the app authenticates as an OAuth client. 'confidential': a dedicated client ID and client secret, for server-side apps. 'public': a dedicated client ID and PKCE with no secret, for native, mobile and single-page apps. These apps normally use the project-level issuer and discovery endpoints. On create, an empty clientType means the legacy Access Key type (the project ID is the client ID, and the issuer and discovery endpoints are per app); accounts that can't use the legacy type get 'confidential' instead. On update, an empty clientType keeps the app's current type.

Value in"" | "confidential" | "public"
approvedRedirectUrls?array<string>
string
authorizationCodeDisabled?boolean
clientCredentialsDisabled?boolean
refreshTokenDisabled?boolean
jwtBearerDisabled?boolean
deviceCodeDisabled?boolean
forcePkce?boolean
clientId?string

Optional: import an existing OIDC client. Both are accepted on create only (immutable afterward); empty means the client_id is computed and the client_secret is generated server-side. The client_id must be unique within the project. The client_secret is returned once on the create response.

clientSecret?string
defaultAudience?"" | "projectId" | "clientId" | "appId" | "empty"

Default audience policy for issued tokens. Applies only to modern apps (non-empty clientType): 'projectId', 'clientId', 'appId', empty (both), or 'empty' (no aud at all). Legacy apps are unaffected. Mirrors third-party apps.

Value in"" | "projectId" | "clientId" | "appId" | "empty"
trustedAppIds?array<string>
string

trustedAppIds lists sibling SSO apps whose roles are included in this app's JWT under the trustedApps claim at login time. Apps where the user has no roles are silently omitted.

customAttributes?object

Custom attributes as key-value pairs. Keys must be strings; values can be strings, numbers, booleans, or arrays.

Example{ "attribute-key": "attribute-value" }
trustedAppsAudience?"" | "projectId" | "clientId" | "appId" | "empty"

Audience policy applied to trusted sibling apps' identifiers when appended to the issued token's aud (see trustedAppIds). Same value set as defaultAudience: 'projectId' / 'clientId' / 'appId' / empty (=both) / 'empty' (add none). Independent of defaultAudience.

Value in"" | "projectId" | "clientId" | "appId" | "empty"
serviceAccountRoles?array<SSOAppServiceAccountRole>

serviceAccountRoles assigns this app (when client_credentials is enabled) application-roles in its trusted apps; surfaced in its client_credentials token under the app.trustedApps claim.

mtlsClientAuthMethods?object
darkLogo?string
wellKnownCustomization?object
assignedRoleIds?array<string>
string

assignedRoleIds 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.

forceDpop?boolean

Require a valid DPoP proof (RFC 9449) at the token endpoint. Applies to Confidential/Public clients; legacy apps (empty clientType) are exempt. Defaults to false.

logoutPropagation?"" | "allApps" | "none"

How far a logout at the app's end-session endpoint reaches: 'none' (default) only ends the user's sessions and notifies no other app, 'allApps' also logs the user out of their other apps. An update without it sets it back to 'none'.

Value in"" | "allApps" | "none"
notifyOnForceLogout?boolean

Whether a Force Logout of the user (the Console's, or Logout User from All Devices in this API) sends the app a back-channel logout token. Needs backChannelLogoutUrl. Off (default): a force logout doesn't notify the app. A logout of all devices through the auth API is not affected.

noScopeBehavior?"legacyNoScopePolicy" | "grantDefaultScopes" | "grantAllScopes"

noScopeBehavior decides what this application grants when a client's authorization or token request names no scopes (after the protocol-only scopes "openid" and "offline_access" are dropped). Send one of: 0 = legacyNoScopePolicy, keep the behavior this application kind already had, which is granting every advertised scope for a third party application and granting none for a sign-in application (the default); 1 = grantDefaultScopes, grant exactly the defaultScopes list; 2 = grantAllScopes, grant every scope the application advertises. Values 1 and 2 behave identically on both application kinds. Omit the field entirely to leave the stored behavior untouched; sending 0 sets it back to legacy.

Formatenum
Value in"legacyNoScopePolicy" | "grantDefaultScopes" | "grantAllScopes"
defaultScopes?array<string>
string

defaultScopes are the scopes granted when noScopeBehavior is grantDefaultScopes (1) and a client requests no scopes; ignored under every other behavior. Must name at least one scope that is not a protocol scope under that behavior - "openid" alone resolves to nothing once the request validator strips it. Every entry has to be a scope the application's own request validator accepts, or each scope-less request fails with invalid_scope: on a third party application that means a scope the application declares (its permission, attribute or connection scopes, or its scopeClaimMapping), plus "openid"; on a sign-in application that defines its own scopeClaimMapping, that mapping plus "openid" and "profile"; on a sign-in application without one, any standard OIDC scope ("openid", "profile", "email", "phone", "picture", "descope.claims", "customAttributes."). "offline_access" is always rejected - a refresh token has to be requested. Defaults to empty.

Itemsitems <= 100

Create OIDC Application within a project

This endpoint creates an OIDC Application within your Descope project.

See Also

curl -X POST "https://api.descope.com/v1/mgmt/sso/idp/app/oidc/create" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "string"}
export interface Response {id?: string}
Was this helpful?