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?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠