The token revocation endpoint allows clients to notify the authorization server that a previously obtained refresh or access token is no longer needed. The revocation request invalidates the actual token and possibly other tokens based on the same authorization grant.
The OAuth 2.0 Token Revocation documentation defines the token revocation endpoint.
This endpoint accepts only the HTTP POST method.
Endpoint: /as/revoke_token.oauth2
Only Internally Managed Reference Tokens support direct access token revocation. JSON web token (JWT) type access tokens do not support direct revocation. JWT access tokens can only be indirectly revoked if the associated refresh token is revoked, and the JWT's configuration field Access Grant GUID Claim Name is set for the given access token manager instance.
When the authorization server revokes a refresh token, it also revokes the associated access grant and access tokens. When the authorization server revokes an access token, the associated access grant and refresh token remain untouched with the exception of the implicit grant type. If the Reuse Existing Persistent Access Grants for GrantTypes check box is selected in the window, the implicit access grant will also be revoked with the access token.
The following table describes parameters for this endpoint. The required
Content-Type value is
application/x-www-form-urlencoded
when transmitting through the HTTP
POST method.
Parameter | Description |
---|---|
token (Required) |
The token that the client wants to revoke. Important:
To avoid recording this parameter in web server logs, only pass it in the message body using the HTTP POST method. |
token_type_hint | A hint about the type of token submitted for revocation. PingFederate
supports values of access_token and refresh_token .
|
The following table describes parameters for this endpoint. The required
Content-Type value is
application/x-www-form-urlencoded
.
OAuth client identification and authentication
The authentication requirement of this endpoint depends on the client authentication method configured for the clients.
Authentication method | Parameters |
---|---|
Client secret | Clients can present their client identifier and client secret using the
HTTP Basic authentication scheme, where the client identifier is the
username, and the client secret is the password. Clients can provide credentials using the request parameters client_id and client_secret. Important:
This is a sensitive parameter. To avoid recording it in web server logs, only pass in this parameter with the HTTP POST method in the message body, or through the HTTP Basic authentication scheme. |
Client certificate | Clients must present their client certificate for mutual TLS authentication. The issuer and the subject distinguished name (DN) of the client certificate must match values configured for the clients. |
Private key JWT | Clients must include request parameters
client_assertion_type and
client_assertion in the message body of their requests.
Example
Note:
For readability, line breaks are inserted and the authentication token is truncated. For more information about the private_key_jwt client authentication method, see Client Authentication and Using Assertions for Client Authentication. |
None | Clients must pass in the client_id parameter in a query string or the message body to identify themselves. |