Skip to main content

revoke_token

Function revoke_token 

Source
pub async fn revoke_token(
    __arg0: State<Arc<OAuthState>>,
    __arg1: Form<RevocationRequest>,
) -> Response
Expand description

POST /oauth/revoke (RFC 7009)

Revokes a refresh token or access token. Access tokens with a jti claim are published to the credential-revocation store (checked by verify_claims on every request). Per RFC 7009 Section 2.1, the server responds with 200 OK even if the token is invalid or already revoked. Publication failure is different: an absent store or a publication the revocation authority did not durably accept is a 503 — a revocation that did not happen must never look like success.