Token revocation invalidates an access token before its normal expiration, such as after discovering that a token was stolen. Spring Security authorization servers enable the revocation feature by default. section 14.5
Use the authorization server’s revocation endpoint to:
- Submit the token to revoke with HTTP Basic authentication using the client credentials. section 14.5
- Validate the result through introspection; a revoked token is reported inactive even when its time to live remains. section 14.5
- Account for the performance cost: revocation requires introspection on every call, including when using non-opaque tokens. section 14.5
Revoke and verify a token
POST the token to /oauth2/revoke with client authentication, then POST it to /oauth2/introspect and confirm that it is no longer active.



