Function mas_oidc_client::requests::revocation::revoke_token   
source · pub async fn revoke_token(
    http_service: &HttpService,
    client_credentials: ClientCredentials,
    revocation_endpoint: &Url,
    token: String,
    token_type_hint: Option<OAuthTokenTypeHint>,
    now: DateTime<Utc>,
    rng: &mut impl Rng,
) -> Result<(), TokenRevokeError>Expand description
Revoke a token.
§Arguments
- 
http_service- The service to use for making HTTP requests.
- 
client_credentials- The credentials obtained when registering the client.
- 
revocation_endpoint- The URL of the issuer’s Revocation endpoint.
- 
token- The token to revoke.
- 
token_type_hint- Hint about the type of the token.
- 
now- The current time.
- 
rng- A random number generator.
§Errors
Returns an error if the request fails or the response is invalid.