SignInService / Client / revoke_oauth2_token_with_iam

revoke_oauth2_token_with_iam

SignInService.Client.revoke_oauth2_token_with_iam(**kwargs)

Revokes an OAuth 2.0 refresh token and its associated token chain.

See also: AWS API Documentation

Request Syntax

response = client.revoke_oauth2_token_with_iam(
    token='string'
)
Parameters:

token (string) –

[REQUIRED]

The refresh token to revoke. Must be a refresh token issued by AWS Sign-In. Access tokens are not accepted for revocation.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

    Output structure for RevokeOAuth2TokenWithIAM operation

    RFC 7009 §2.2 revocation response. The endpoint returns 200 OK with an empty body on success; there are no response fields.

Exceptions