Skip to main content

Module revoke

Module revoke 

Source

StructsΒ§

MainFrontendOauthRevokeApiDoc πŸ”’

FunctionsΒ§

_add_routes
not_found_or_storage_error πŸ”’
Classifies a token lookup failure: Ok(()) for β€œno such live token”, so the caller can try the other token type, and 5xx for a storage failure (RFC 7009 permits 5xx on genuine backend failures, but not on an unknown token).
revoke
Handles the /revoke endpoint for OAuth 2.0 token revocation (RFC 7009).
revoke_access_token_of_client πŸ”’
Deletes the presented access token if it belongs to the authenticated client, and evicts its cached user mapping so it cannot keep authenticating from a stale cache hit.
revoke_refresh_grant_of_client πŸ”’
Revokes the presented refresh token if it belongs to the authenticated client, together with everything else issued from the same (user, client) grant.