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

Use same username as challenge parameters #23

Conversation

circulon
Copy link

@circulon circulon commented Jan 9, 2021

This fixes an issue where the username in the auth initiate and the username returned in the challenge response did not match.

This is noted as an issue when using an email or some other alias to initiate the change password auth flow (specifically used after admin_create_user) but the username returned in the challenge parameters is the actual username (ie sub) not the alias (ie email or phone).

@pvizeli
Copy link
Member

pvizeli commented Jan 9, 2021

please address the CI issue

@circulon
Copy link
Author

@pvizeli

All tests passing now ;)

Copy link
Member

@pvizeli pvizeli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@pvizeli pvizeli merged commit 0a18e88 into NabuCasa:master Jan 10, 2021
mdecuir pushed a commit to MDmetrix/pycognito that referenced this pull request Jun 30, 2021
* Use same username as challenge parameters

* Adjusted layout

* Fixes for tests

* Fixes for tests
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

Successfully merging this pull request may close these issues.

2 participants