Passer au contenu

AdminDisable User doesn't seem to disable the previously issued access token

0

Hi, I am using AdminDisable User API to disable a user account, on repetitive failures to login. The documentation here https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminDisableUser.html mentions that the tokens will be revoked on calling this API. Does this process revoke all previously issued access tokens and refresh tokens? I doesn't seem to do that.

1 réponse
0

Calling AdminDisableUser in Amazon Cognito does not immediately revoke all previously issued access tokens. It prevents the user from authenticating again and invalidates refresh tokens going forward, but any already issued access tokens remain valid until they expire. To actively revoke tokens in real time, you may consider using Cognito token revocation features (e.g., RevokeToken API) with token revocation enabled on your app client.

https://docs.aws.amazon.com/cognito/latest/developerguide/token-revocation.html

https://docs.aws.amazon.com/cognito/latest/developerguide/token-revocation.html

EXPERT

répondu il y a 10 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.