Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Device SRP / Device Password Verification Support #133

Open
jimmyherron opened this issue May 18, 2022 · 1 comment
Open

[Feature] Device SRP / Device Password Verification Support #133

jimmyherron opened this issue May 18, 2022 · 1 comment

Comments

@jimmyherron
Copy link

Hi Guys

Would love to see device SRP support, I'm really struggling to figure out https://aws.amazon.com/premiumsupport/knowledge-center/cognito-user-pool-remembered-devices/ in python. No matter what combination of things I do, this fails.

I'd be happy to contribute where I got up to in exchange for some TLC.

Let me know

@Taikono-Himazin
Copy link

This is my guess, but referring to the boto3 reference, it seems necessary to do the following:

initiate_auth reference
Execute initiate_auth ()
The AccessToken and NewDeviceMetadata of this response contain the DeviceKey, so save it.

update_device_status reference
Execute update_device_status (AccessToken, DeviceKey, DeviceRememberedStatus ='remembered')
You should now remember your device in Cognito.

I haven't actually tried it, but what about it?
These are probably not implemented in pycognito, so I think it's better to run them using the client in pycognito (the client of boto3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants