/v1/auth/logoutallAuthorization
Descope Project ID:Refresh JWT Project ID:Refresh JWT as bearer token.
In: header
Request Body
application/json
Also log the user out of their SSO identity provider (descope/etc#20773). When the session signed in through a SAML SSO configuration with single logout on, the response's ssoLogoutUrl sends the browser to the IdP with a signed LogoutRequest; once the IdP logs the user out, it sends the browser back to Descope, which redirects to redirectUrl. The Descope session ends either way.
With ssoLogout, where the browser lands once the IdP has logged the user out. Must be in the project's approved domains. Empty uses the SSO configuration's redirect URL.
Log the user out from all signed-in sessions
This API endpoint will sign the user out of all the devices they are currently signed-in with. Successfully executing this endpoint will invalidate all user's refresh tokens. Response will include all user tokens and fields empty, so client will remove cookies as well.
curl -X POST "https://api.descope.com/v1/auth/logoutall" \ -H "Content-Type: application/json" \ -d '{}'{ "cookieDomain": "string", "cookiePath": "string", "ssoLogoutUrl": "string"}/** * The field numbers are JWTResponse's, which logout returned before: a gRPC caller on either version reads the other's * response the same way during a deployment. */export interface Response {/** * The domain and path of the cookies the logout deleted */cookieDomain?: stringcookiePath?: string/** * Set by a logout with ssoLogout when the session signed in through a SAML SSO configuration with single logout * on: send the browser here to log the user out of the IdP too. Absent when there is nothing to do at the IdP. * Not a JWTResponse field, so an older caller ignores it. */ssoLogoutUrl?: string}Sign-Out POST
### Log the user out from the provided session This API endpoint will sign the user out of the provided session using the `refreshToken`. Successfully executing this endpoint will invalidate the provided refresh tokens. Response will also include all user tokens and fields empty, so the executing client will remove cookies as well.
Validate Session POST
### Validate and parse a user's session JWT. This endpoint is used to validate a users session using the Project ID and the user's session JWT. Upon successful validate of the user, you will receive the parsed JWT. When posting to this endpoint from an application, you get the JWT from local or cookie storage, and prepend it with project ID and use that as the bearer.