The /logout endpoint is a redirection endpoint. It signs the user out and redirects either to an authorized sign-out URL for your app client, or to the /login endpoint. The available parameters in a GET request to the /logout endpoint are tailored to Amazon Cognito hosted UI use cases.
See AWS Cognito Logout Endpoint Documentation for more information

Logout Request

Make a GET request to https://auth.smokeball.com/oauth2/logout with the following query parameters:
curl --request GET 'https://auth.smokeball.com/oauth2/logout?response_type=code&client_id=xxxxx&redirect_uri=https://xxxxxxxx'
Authorization
string
Optional: Bearer token for authenticated logout requests.Example: "Bearer dmcxd329ujdmkemkd349r"
response_type
string
required
Must be set to "code" for OAuth2 logout redirection.Ensures the authorization server returns an authorization code.
client_id
string
required
The client identifier issued during application registration.Used to verify the application initiating logout. Example: "xxxxx"
redirect_uri
string
required
The URI where the user will be redirected after logout.Must match a pre-registered logout redirect URI. Example: "https://xxxxxxxx"

Request Headers

  • Authorization: Bearer token

Response

The logout endpoint responds with a status code indicating the success (200) or failure of the logout operation.