Revoke OAuth2 tokens (RFC 7009).
POST
application/x-www-form-urlencoded- body
client_id?stringClient ID, required unless sent as the HTTP Basic username
client_secret?stringClient secret, required for a confidential client unless sent as the HTTP Basic password. Public clients (token_endpoint_auth_method=none) send no secret.
token*stringThe token to revoke
token_type_hint?stringHint about token type (access_token or refresh_token)
Token successfully revoked. A 200 does not confirm that the token existed or belonged to the client
The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X POST \ "$CODER_URL/oauth2/revoke" \ -H "Content-Type: application/x-www-form-urlencoded" \ --data-binary "@{file}"Example Response
Empty