Cognito remember devices

0

For a user pool under device tracking I have it set to user opt-in and allow users to bypass MFA for trusted devices set to yes. However I'm never presented with the option to remember my browser when I'm prompted to login. Also I notice that the cookies issued have no expiration and are per session. I want the option to remember browsers and cookies to remain persistent, what am I missing?

已提问 2 年前614 查看次数
1 回答
0

Hello m1systems, I understand that you are having difficulty getting your device to remember your credentials. A probable reason for this issue is that you have not enabled remember device function
Please refer to this article and scroll down to the (Optional) Call UpdateDeviceStatus for detailed information: https://aws.amazon.com/premiumsupport/knowledge-center/cognito-user-pool-remembered-devices/

The step you would want to complete would be the "If you choose User Opt In, then you must include an UpdateDeviceStatus API call."

If you select User Opt-In, you can remember devices only when your application's users opt to do so. When a user signs in with a new device, the response from the request to initiate tracking indicates whether the user should be prompted about remembering their device. You must create the user interface to prompt users. If the user opts to have the device remembered, the device status is updated with a 'remembered' state.

This documentation will explain how to complete the next task:
https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html#amazon-cognito-user-pools-setting-up-remembered-devices

You must also create the user interface to prompt users. If the user opts to have the device remembered, the device status is updated with a 'remembered' state. For your cookies to stay persistent, for hosted UI we don’t have mechanism to configure cookie settings but rather change default duration for access and ID token

Please let us know if you have any further questions. We are happy to assist you!
Issac_A
已回答 2 年前
  • So just to clarify there's no option to remember devices through the AWS hosted forms then?

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

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

回答问题的准则