amplify-android icon indicating copy to clipboard operation
amplify-android copied to clipboard

Amplify.Auth.fetchUserAttributes fails if clock sync > 5 minutes

Open camhart opened this issue 4 years ago • 3 comments

Amplify.Auth.fetchUserAttributes fails if the clock is off by more than 5 minutes. Basically it seems it doesn't take clock skew into account, where other Amplify.Auth calls appear to. Would love to get this fixed, or have some ability to pass clock skew in, as my app actually keeps track of it.

camhart avatar Dec 23 '20 04:12 camhart

Hi Cam, I see that you asked a similar question on the AWS Forums in December 2019. What behavior are you observing, when the calls fails? Is there an exception trace that you'd like to share? How did you arrive at a value of 5 minutes?

jamesonwilliams avatar Jan 02 '21 22:01 jamesonwilliams

I just assumed its 5 minutes because AWS_IAM auth fails once the aws signature is 5 minutes off. I only noticed that it fails if the clock it out of sync. Assumed 5 minutes.

On Sat, Jan 2, 2021, 2:35 PM Jameson Williams [email protected] wrote:

Hi Cam, I see that you asked a similar question on the AWS Forums in December 2019 https://forums.aws.amazon.com/thread.jspa?threadID=314373. What behavior are you observing, when the calls fails? Is there an exception trace that you'd like to share? How did you arrive at a value of 5 minutes?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aws-amplify/amplify-android/issues/1069#issuecomment-753538395, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXF4WIK72PHPOYCHN257GLSX6NTBANCNFSM4VGQIPMQ .

camhart avatar Jan 03 '21 01:01 camhart

@camhart my apologies for not getting to this sooner. Can you advise if you are still facing this issue using the latest version of the Amplify Android library and I can look into this.

gpanshu avatar Jul 15 '22 18:07 gpanshu

@camhart if upgrading is an option for you I would invite you to test out our new V2 library and see if you are still experiencing an issue. Thank you.

gpanshu avatar Dec 29 '22 18:12 gpanshu

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Dec 29 '22 18:12 github-actions[bot]