Skip to content

Revoke a token

Request

Early Access

Revokes an access or refresh token for the specified IdP.

After a token is revoked, it can't be used to access protected resources.

Path
idpIdstring, (uuid)required

Identifier of the IdP

Bodyapplication/x-www-form-urlencodedrequired
client_idstring

The client ID. Provide this value if you are not using HTTP Basic Auth.

client_secretstringwrite-only

The client secret. Provide this value if you are not using HTTP Basic Auth.

tokenstringrequired

The access token or refresh token to revoke

token_type_hintstring

A hint to the authorization server about the type of token being submitted. If it's omitted, the server attempts to determine the token type automatically.

Enum ValueDescription
access_token

The submitted token is an access token

refresh_token

The submitted token is a refresh token

curl -i -X POST \
  'https://oag.domain.tld/realms/{idpId}/protocol/openid-connect/revoke' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'token=<<token>>' \
  -d token_type_hint=access_token

Responses

Token successfully revoked or is already invalid

Response
No content