I have a Java backend that tries to create auth0 users via the /api/v2/users API, using a machine-machine token. I always get the “Password is too weak error”.
When I create the user with the same password in the console, then it works.
What is wrong here?
Welcome to the Auth0 Community!
I understand you have encountered problems when creating users, specifically with the “PasswordStrengthError: Password is too weak” error.
First, this error happens whenever the password of the user signing up does not meet the password strength policy.
In this case, you will need to verify the Password Policy in the
connection you specified in your request (e.g Username-Password-Authentication).
Navigate to the Auth0 Dashboard > Authentication >Database > YOUR_DATABASE and click on the Password Policy tab.
On there, you should be able to set the Password Strength to suit your needs. See below:
Please make sure to save your settings at the bottom of the page.
Hoped this helps!
Please let me know if there’s anything else I can do to help.