Skip to content

/AWS1/CL_CGP=>REVOKETOKEN()

About RevokeToken

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.

Method Signature

IMPORTING

Required arguments:

IV_TOKEN TYPE /AWS1/CGPTOKENMODELTYPE /AWS1/CGPTOKENMODELTYPE

The refresh token that you want to revoke.

IV_CLIENTID TYPE /AWS1/CGPCLIENTIDTYPE /AWS1/CGPCLIENTIDTYPE

The client ID for the token that you want to revoke.

Optional arguments:

IV_CLIENTSECRET TYPE /AWS1/CGPCLIENTSECRETTYPE /AWS1/CGPCLIENTSECRETTYPE

The secret for the client ID. This is required only if the client ID has a secret.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_CGPREVOKETOKENRSP /AWS1/CL_CGPREVOKETOKENRSP