Log Out
get
/oauth2/v1/userlogout
Request
Supported Media Types
- application/json
Query Parameters
-
id_token_hint: string
Identity Token that is generated during a 3-legged OAuth flow
-
post_logout_redirect_uri: string
Redirect URI after logout
-
state(optional): string
Opaque value used to maintain the state between the request and the callback
Response
Supported Media Types
- application/json
200 Response
Logout complete
400 Response
Invalid request
Examples
The following example shows how to log a user out (and remove associated cookies and sessions) by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL. See the Authorization section for more information on grant types.
cURL Command
Note:
The command in this example uses the URL structurehttps://tenant-base-url/resource-path
, where
tenant-base-url
represents the Identity Service URL, and the resource path represents the Identity Service API. See
Send Requests for the appropriate URL structure to use.
curl
-X GET
-H "Content-Type:application/scim+json"
https://tenant-base-url/oauth2/v1/userlogout
Example of Response Body
The following example shows the contents of the response body in JSON format:
{
}