NabuCasa/pycognito

admin_create_user actually requires temporary_password parameter

mdecuir opened this issue · 1 comments

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 commented

Released in 2022.11.0