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

admin_create_user actually requires temporary_password parameter #66

Closed
mdecuir opened this issue Jun 25, 2021 · 1 comment
Closed

admin_create_user actually requires temporary_password parameter #66

mdecuir opened this issue Jun 25, 2021 · 1 comment

Comments

@mdecuir
Copy link

mdecuir commented Jun 25, 2021

The comments of the admin_create_user method indicate that it is an optional parameter and if omitted, Cognito will generate a temporary password. When I try to use the method in this manner, I get errors that the temporary password provided is invalid.

Based on the boto3 documentation for this action at https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cognito-idp.html#CognitoIdentityProvider.Client.admin_create_user, it looks like the TemporaryPassword parameter needs to be omitted from the request to let Cognito generate the temporary password for you, but the code in this library is always passing the parameter in, even if it is an empty string or None.

@nk9
Copy link

nk9 commented Nov 17, 2022

Released in 2022.11.0

@ludeeus ludeeus closed this as completed May 13, 2024
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

3 participants