GET
/v1/mgmt/sso/idp/app/load

Authorization

Descope Project ID and Management Key
AuthorizationBearer <token>

Project ID:Management Key as bearer token.

In: header

Load Application by ID within a project

This endpoint returns details of a specific Application within your Descope project.

See Also

curl -X GET "https://api.descope.com/v1/mgmt/sso/idp/app/load?id=string"
{  "id": "string",  "name": "string",  "description": "string",  "enabled": true,  "logo": "string",  "appType": "saml",  "samlSettings": {    "loginPageUrl": "string",    "idpCert": "string",    "useMetadataInfo": true,    "metadataUrl": "string",    "entityId": "string",    "acsUrl": "string",    "certificate": "string",    "attributeMapping": [      {        "name": "string",        "type": "string",        "value": "string"      }    ],    "groupsMapping": [      {        "name": "string",        "type": "string",        "filterType": "string",        "value": "string",        "roles": [          {            "id": "string",            "name": "string"          }        ]      }    ],    "idpMetadataUrl": "string",    "idpEntityId": "string",    "idpSsoUrl": "string",    "acsAllowedCallbacks": [      "string"    ],    "subjectNameIdType": "string",    "subjectNameIdFormat": "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified",    "defaultRelayState": "string",    "idpInitiatedUrl": "string",    "forceAuthentication": true,    "idpLogoutUrl": "string",    "logoutRedirectUrl": "string",    "errorRedirectUrl": "string",    "defaultSignatureAlgorithm": "",    "singleLogoutEnabled": true,    "spSingleLogoutUrl": "string",    "spSingleLogoutBinding": "",    "singleLogoutPropagation": "",    "singleLogoutScope": "",    "notifyOnForceLogout": true  },  "oidcSettings": {    "loginPageUrl": "string",    "issuer": "string",    "discoveryUrl": "string",    "claims": [      "string"    ],    "forceAuthentication": true,    "jwtBearerSettings": {      "issuers": {        "property1": {          "jwksUri": "string",          "signAlgorithm": "RS256",          "userInfoUri": "string",          "externalIdFieldName": "string",          "jitDisabled": true,          "attributeMapping": {            "name": "string",            "email": "string",            "group": "string",            "givenName": "string",            "middleName": "string",            "familyName": "string",            "picture": "string",            "customAttributes": {              "property1": "string",              "property2": "string"            }          }        },        "property2": {          "jwksUri": "string",          "signAlgorithm": "RS256",          "userInfoUri": "string",          "externalIdFieldName": "string",          "jitDisabled": true,          "attributeMapping": {            "name": "string",            "email": "string",            "group": "string",            "givenName": "string",            "middleName": "string",            "familyName": "string",            "picture": "string",            "customAttributes": {              "property1": "string",              "property2": "string"            }          }        }      },      "jwtBearerGrantTypeAudienceToUse": "string",      "jwtBearerGrantTypeScopeToUse": "string",      "jwtBearerGrantTypeCustomClaimsToUse": "string"    },    "backChannelLogoutUrl": "string",    "customIdpInitiatedLoginPageUrl": "string",    "sessionSettings": {      "enabled": true,      "refreshTokenExpiration": 0,      "refreshTokenExpirationUnit": "seconds",      "sessionTokenExpiration": 0,      "sessionTokenExpirationUnit": "seconds",      "userTemplateId": "string",      "keyTemplateId": "string",      "keySessionTokenExpiration": 0,      "keySessionTokenExpirationUnit": "seconds",      "enableInactivity": true,      "inactivityTime": 0,      "inactivityTimeUnit": "seconds"    },    "clientId": "string",    "clientSecret": "string",    "clientType": "",    "approvedRedirectUrls": [      "string"    ],    "authorizationCodeDisabled": true,    "clientCredentialsDisabled": true,    "refreshTokenDisabled": true,    "jwtBearerDisabled": true,    "deviceCodeDisabled": true,    "forcePkce": true,    "defaultAudience": "",    "scopeClaimMapping": [      {        "scope": "string",        "claims": {          "property1": "string",          "property2": "string"        },        "description": "string",        "useProjectMapping": true,        "mandatory": true,        "claimTargets": {          "property1": {            "tokens": [              "accessToken"            ]          },          "property2": {            "tokens": [              "accessToken"            ]          }        }      }    ],    "trustedAppsAudience": "",    "mtlsClientAuthMethods": {      "tlsClientAuth": {        "credentials": [          {            "id": "string",            "name": "string",            "subjectDn": "string",            "pem": "string",            "thumbprint": "string",            "createdAt": 0          }        ]      },      "selfSignedTlsClientAuth": {        "credentials": [          {            "id": "string",            "name": "string",            "subjectDn": "string",            "pem": "string",            "thumbprint": "string",            "createdAt": 0          }        ]      }    },    "wellKnownCustomization": {      "id": "string",      "version": "string",      "hiddenFields": [        "string"      ],      "removedValues": {        "property1": {          "values": [            "string"          ]        },        "property2": {          "values": [            "string"          ]        }      },      "scopesSupported": {        "extra": [          "string"        ],        "excluded": [          "string"        ]      },      "claimsSupported": {        "extra": [          "string"        ],        "excluded": [          "string"        ]      },      "enabled": true    },    "forceDpop": true,    "logoutPropagation": "",    "notifyOnForceLogout": true,    "noScopeBehavior": "legacyNoScopePolicy",    "defaultScopes": [      "string"    ]  },  "customSettings": {    "loginPageUrl": "string",    "sessionSettings": {      "enabled": true,      "refreshTokenExpiration": 0,      "refreshTokenExpirationUnit": "seconds",      "sessionTokenExpiration": 0,      "sessionTokenExpirationUnit": "seconds",      "userTemplateId": "string",      "keyTemplateId": "string",      "keySessionTokenExpiration": 0,      "keySessionTokenExpirationUnit": "seconds",      "enableInactivity": true,      "inactivityTime": 0,      "inactivityTimeUnit": "seconds"    }  },  "wsfedSettings": {    "loginPageUrl": "string",    "realm": "string",    "replyUrl": "string",    "attributeMapping": [      {        "name": "string",        "type": "string",        "value": "string"      }    ],    "groupsMapping": [      {        "name": "string",        "type": "string",        "filterType": "string",        "value": "string",        "roles": [          {            "id": "string",            "name": "string"          }        ]      }    ],    "forceAuthentication": true,    "logoutRedirectUrl": "string",    "errorRedirectUrl": "string",    "idpCert": "string",    "idpInitiatedUrl": "string",    "idpMetadataUrl": "string",    "idpEntityId": "string",    "idpSsoUrl": "string",    "idpLogoutUrl": "string",    "replyAllowedCallbacks": [      "string"    ]  },  "trustedAppIds": [    "string"  ],  "customAttributes": {    "attribute-key": "attribute-value"  },  "serviceAccountRoles": [    {      "targetAppId": "string",      "roleIds": [        "string"      ]    }  ],  "createdTime": 0,  "darkLogo": "string",  "assignedRoleIds": [    "string"  ]}
export interface Response {id: string/** * int64 version - excluded *  string projectId - copied */name: stringdescription?: stringenabled?: booleanlogo?: stringappType: ("saml" | "oidc" | "custom" | "wsfed" | "")samlSettings?: SSOApplicationSAMLSettingsoidcSettings?: SSOApplicationOIDCSettingscustomSettings?: SSOApplicationCustomSettingswsfedSettings?: SSOApplicationWSFedSettings/** * trustedAppIds lists sibling SSO apps whose roles are included in this app's JWT under the *  `trustedApps` claim at login time. Only OIDC and Custom app types may set a non-empty value. */trustedAppIds?: string[]/** * Custom attributes as key-value pairs. Keys must be strings; values can be strings, numbers, booleans, or arrays. */customAttributes?: {[k: string]: string}/** * 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. */serviceAccountRoles?: {targetAppId: stringroleIds?: string[]}[]/** * createdTime is epoch seconds (int32 so it serializes as a JSON number). */createdTime?: numberdarkLogo?: string/** * assignedRoleIds lists project-level roles that grant access to this application. A user holding *  any of them can access the application, in addition to users assigned to it directly or through *  their tenant. This is additive and never removes access, so it only changes the outcome for *  projects configured to deny applications by default. Tenant scoped roles are rejected. */assignedRoleIds?: string[]}export interface SSOApplicationSAMLSettings {loginPageUrl?: stringidpCert?: stringuseMetadataInfo?: boolean/** * Must not resolve to an internal or private address. */metadataUrl?: stringentityId?: stringacsUrl?: stringcertificate?: stringattributeMapping?: {name?: stringtype?: stringvalue?: string}[]groupsMapping?: {name?: stringtype?: stringfilterType?: stringvalue?: stringroles?: SAMLIDPRoleGroupMappingInfo[]}[]idpMetadataUrl?: stringidpEntityId?: stringidpSsoUrl?: stringacsAllowedCallbacks?: string[]subjectNameIdType?: stringsubjectNameIdFormat?: ("urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" | "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" | "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" | "urn:oasis:names:tc:SAML:2.0:nameid-format:transient" | "")defaultRelayState?: stringidpInitiatedUrl?: stringforceAuthentication?: booleanidpLogoutUrl?: stringlogoutRedirectUrl?: stringerrorRedirectUrl?: stringdefaultSignatureAlgorithm?: ("" | "sha256")/** * SAML Single Logout (SLO) is on for the app. Off by default. */singleLogoutEnabled?: boolean/** * The SP's SingleLogoutService URL; empty means it is taken from the SP metadata *  With the 'soap' binding, must not resolve to an internal or private address. */spSingleLogoutUrl?: string/** * The binding of spSingleLogoutUrl: 'redirect', 'post' or 'soap'. Default (empty): with spSingleLogoutUrl, *  'redirect'; without it, from the SP metadata ('soap' when it offers an https SOAP endpoint, else 'redirect', *  else 'post') */spSingleLogoutBinding?: ("" | "redirect" | "post" | "soap")/** * What a logout the app's SP starts reaches: 'none' (default) or 'allApps' */singleLogoutPropagation?: ("" | "allApps" | "none")/** * Which sessions a logout the app's SP starts ends: 'session' (default) or 'allSessions' */singleLogoutScope?: ("" | "session" | "allSessions")/** * Whether a Force Logout of the user sends the app a LogoutRequest (single logout over SOAP only) */notifyOnForceLogout?: boolean}export interface SAMLIDPRoleGroupMappingInfo {id?: stringname?: string}export interface SSOApplicationOIDCSettings {loginPageUrl?: stringissuer?: stringdiscoveryUrl?: stringclaims?: string[]forceAuthentication?: booleanjwtBearerSettings?: {issuers?: {[k: string]: IssuerSettings}jwtBearerGrantTypeAudienceToUse?: stringjwtBearerGrantTypeScopeToUse?: stringjwtBearerGrantTypeCustomClaimsToUse?: string}/** * Must not resolve to an internal or private address. Must use https. */backChannelLogoutUrl?: stringcustomIdpInitiatedLoginPageUrl?: stringsessionSettings?: {enabled?: booleanrefreshTokenExpiration?: numberrefreshTokenExpirationUnit: ("seconds" | "minutes" | "hours" | "days" | "weeks" | "")sessionTokenExpiration?: numbersessionTokenExpirationUnit: ("seconds" | "minutes" | "hours" | "days" | "weeks" | "")userTemplateId?: stringkeyTemplateId?: stringkeySessionTokenExpiration?: numberkeySessionTokenExpirationUnit: ("seconds" | "minutes" | "hours" | "days" | "weeks" | "")/** * Inbound apps and MCP servers only; ignored on SSO applications. Custom mode only (enabled=true). A refresh after inactivityTime without use is rejected and the client must authorize again. In inherit mode (enabled=false) the project session inactivity applies instead. */enableInactivity?: boolean/** * Inbound apps and MCP servers only; ignored on SSO applications. How long a client may stay unused before its refresh token is rejected, in inactivityTimeUnit. */inactivityTime?: number/** * Inbound apps and MCP servers only; ignored on SSO applications. Unit of inactivityTime: seconds, minutes, hours, days, weeks. */inactivityTimeUnit?: ("seconds" | "minutes" | "hours" | "days" | "weeks" | "")}clientId?: string/** * Descope-generated, may be imported on create. Always empty on load; fetch it via GetSSOApplicationSecret. */clientSecret?: stringclientType?: ("" | "confidential" | "public")approvedRedirectUrls?: string[]authorizationCodeDisabled?: booleanclientCredentialsDisabled?: booleanrefreshTokenDisabled?: booleanjwtBearerDisabled?: booleandeviceCodeDisabled?: booleanforcePkce?: boolean/** * 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. */defaultAudience?: ("" | "projectId" | "clientId" | "appId" | "empty")/** * Per-app scope→claims mapping. When non-empty, this mapping REPLACES the project-wide *  ScopeClaimMapping for tokens issued by this app: only scopes listed here can be requested *  (the set of scopes doubles as an allow-list — requesting an unlisted scope returns *  InvalidArguments), and only this mapping's claims are emitted. Per-entry useProjectMapping *  lets an app opt back into the project's claims for an individual scope without restating *  them. Empty list preserves today's behavior (no per-app restriction; project-wide mapping *  applies if configured). */scopeClaimMapping?: {scope?: string/** * claims is consulted only when useProjectMapping is false. When useProjectMapping is true, *  the project-wide mapping's entry for `scope` provides the claims and this field is ignored. */claims?: {[k: string]: string}description?: string/** * useProjectMapping, when true, reuses the project-wide ScopeClaimMapping's entry for this *  scope (the app's `claims` field is ignored). Default false uses the app's own `claims`. */useProjectMapping?: boolean/** * mandatory, when true, means the scope is always granted and cannot be deselected by the *  user on the consent screen. Mirrors the inverse of the legacy ApplicationScope.optional. */mandatory?: boolean/** * claimTargets narrows which tokens a claim is written to, keyed by the claim name. *  Consulted only when useProjectMapping is false — when it is true the project-wide *  entry supplies both the claims and their targets. Empty means every token. */claimTargets?: {/** * ClaimTokenTargets lists the tokens a single mapped claim is written to. An empty *  list means every token, which is the default for claims with no entry. *  *  Values are plain strings rather than an enum because this field is served over two *  JSON surfaces with different enum encodings: the management API marshals via protojson *  (enum names) while the console API marshals the proto with encoding/json (enum numbers). *  A string renders identically on both. Unknown values are dropped on write, so a claim *  with no valid target falls back to the "every token" default. *  *  Wrapper message because proto3 map values cannot be `repeated`. */[k: string]: {tokens?: ("accessToken" | "idToken" | "userInfo" | "")[]}}}[]/** * Audience policy applied to trusted sibling apps' identifiers when appended to the issued token's *  `aud` (see SSOApplication.trustedAppIds). Same value set as defaultAudience: 'projectId' / *  'clientId' / 'appId' / empty (=both) / 'empty' (add none). Independent of defaultAudience. */trustedAppsAudience?: ("" | "projectId" | "clientId" | "appId" | "empty")mtlsClientAuthMethods?: {tlsClientAuth?: TLSClientAuthselfSignedTlsClientAuth?: SelfSignedTLSClientAuth}wellKnownCustomization?: {id?: stringversion?: string/** * @maxItems 50 */hiddenFields?: string[]removedValues?: {[k: string]: WellKnownValueList}/** * Delta over a base advisory list: extra values are advertised in addition to the *  base values, excluded values are removed from them */scopesSupported?: {/** * @maxItems 100 */extra?: string[]/** * @maxItems 100 */excluded?: string[]}/** * Delta over a base advisory list: extra values are advertised in addition to the *  base values, excluded values are removed from them */claimsSupported?: {/** * @maxItems 100 */extra?: string[]/** * @maxItems 100 */excluded?: string[]}/** * Applies the customization to the served documents. Off by default: the configuration is kept and the base document is served until it is enabled */enabled?: 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. */forceDpop?: boolean/** * 'none' (default) or 'allApps': how far a logout at the app's end-session endpoint reaches */logoutPropagation?: ("" | "allApps" | "none")/** * Whether a Force Logout of the user sends the app a back-channel logout token */notifyOnForceLogout?: boolean/** * 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. */noScopeBehavior?: ("legacyNoScopePolicy" | "grantDefaultScopes" | "grantAllScopes")/** * 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.<name>"). "offline_access" is always rejected - a refresh token has to be requested. Defaults to empty. *  * @maxItems 100 */defaultScopes?: string[]}export interface IssuerSettings {/** * Must not resolve to an internal or private address. */jwksUri?: stringsignAlgorithm?: ("RS256" | "ES256" | "ES384" | "ES512" | "")/** * Must not resolve to an internal or private address. */userInfoUri?: stringexternalIdFieldName?: string/** * Cross-App Access JIT provisioning, per trusted issuer. jitDisabled: only sign in an already- *  provisioned user, do not create. attributeMapping maps assertion claims to user fields. Group->role / *  FGA / default-role / priority mapping is read from the tenant's shared SSO config, NOT per issuer. */jitDisabled?: booleanattributeMapping?: {name?: stringemail?: stringgroup?: stringgivenName?: stringmiddleName?: stringfamilyName?: stringpicture?: stringcustomAttributes?: {[k: string]: string}}}export interface TLSClientAuth {credentials?: {id?: stringname: stringsubjectDn?: stringpem?: stringthumbprint?: stringcreatedAt?: number}[]}export interface SelfSignedTLSClientAuth {credentials?: MTLSClientAuthCredential[]}export interface MTLSClientAuthCredential {id?: stringname: stringsubjectDn?: stringpem?: stringthumbprint?: stringcreatedAt?: number}/** * Wrapper for map values - proto3 forbids repeated types as map values */export interface WellKnownValueList {/** * @maxItems 100 */values?: string[]}export interface SSOApplicationCustomSettings {loginPageUrl?: stringsessionSettings?: {enabled?: booleanrefreshTokenExpiration?: numberrefreshTokenExpirationUnit: ("seconds" | "minutes" | "hours" | "days" | "weeks" | "")sessionTokenExpiration?: numbersessionTokenExpirationUnit: ("seconds" | "minutes" | "hours" | "days" | "weeks" | "")userTemplateId?: stringkeyTemplateId?: stringkeySessionTokenExpiration?: numberkeySessionTokenExpirationUnit: ("seconds" | "minutes" | "hours" | "days" | "weeks" | "")/** * Inbound apps and MCP servers only; ignored on SSO applications. Custom mode only (enabled=true). A refresh after inactivityTime without use is rejected and the client must authorize again. In inherit mode (enabled=false) the project session inactivity applies instead. */enableInactivity?: boolean/** * Inbound apps and MCP servers only; ignored on SSO applications. How long a client may stay unused before its refresh token is rejected, in inactivityTimeUnit. */inactivityTime?: number/** * Inbound apps and MCP servers only; ignored on SSO applications. Unit of inactivityTime: seconds, minutes, hours, days, weeks. */inactivityTimeUnit?: ("seconds" | "minutes" | "hours" | "days" | "weeks" | "")}}export interface SSOApplicationWSFedSettings {loginPageUrl?: stringrealm?: stringreplyUrl?: stringattributeMapping?: {name?: stringtype?: stringvalue?: string}[]groupsMapping?: {name?: stringtype?: stringfilterType?: stringvalue?: stringroles?: SAMLIDPRoleGroupMappingInfo[]}[]forceAuthentication?: booleanlogoutRedirectUrl?: stringerrorRedirectUrl?: stringidpCert?: stringidpInitiatedUrl?: stringidpMetadataUrl?: stringidpEntityId?: stringidpSsoUrl?: stringidpLogoutUrl?: stringreplyAllowedCallbacks?: string[]}
Was this helpful?