Revoke Token
cognitoidentityprovider_revoke_token | R Documentation |
Revokes all of the access tokens generated by, and at the same time as, the specified refresh token¶
Description¶
Revokes all of the access tokens generated by, and at the same time as, the specified refresh token. After a token is revoked, you can't use the revoked token to access Amazon Cognito user APIs, or to authorize access to your resource server.
Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito user pools API and user pool endpoints.
Usage¶
cognitoidentityprovider_revoke_token(Token, ClientId, ClientSecret)
Arguments¶
Token |
[required] The refresh token that you want to revoke. |
ClientId |
[required] The ID of the app client where the token that you want to revoke was issued. |
ClientSecret |
The client secret of the requested app client, if the client has a secret. |
Value¶
An empty list.
Request syntax¶
svc$revoke_token(
Token = "string",
ClientId = "string",
ClientSecret = "string"
)