Logout Endpoint
Use the logout endpoint to securely end user sessions
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:
Optional: Bearer token for authenticated logout requests.
Example: "Bearer dmcxd329ujdmkemkd349r"
Must be set to "code"
for OAuth2 logout redirection.
Ensures the authorization server returns an authorization code.
The client identifier issued during application registration.
Used to verify the application initiating logout.
Example: "xxxxx"
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.