跳至内容

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 回答
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

专家

已回答 10 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。