GladysDevelopers

OAuth2 Token Revocation

Revokes an access or refresh token (RFC 7009); revoking a refresh token also revokes the access token issued with it. token_type_hint only decides which kind is looked up first. Answers 200 whether or not the token existed.

Choose a TEST app to send requests from the playground.
post/oauth/revoke

Revokes an access or refresh token (RFC 7009); revoking a refresh token also revokes the access token issued with it. token_type_hint only decides which kind is looked up first. Answers 200 whether or not the token existed.

Request Body

application/x-www-form-urlencoded
  1. body
client_id*string
client_secret?string
token*string
token_type_hint?string

"access_token" or "refresh_token"

Response Body

OK

application/json
  1. response
[key: string]?string
curl -X POST "https://example.com/oauth/revoke" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'client_id=string&token=string'
{  "property1": "string",  "property2": "string"}