Password Policy
Setting format and strength requirements for passwords
Authgear allows you to set a password policy for your project. This page walks through setting password requirements, password strength, keywords to exclude, and password expiry from the Authgear Portal.
You can configure your password policy in password settings.
1. Password Requirements
Choose a minimum character length, and use the checkboxes provided to include one or more requirements for a valid password.

To ensure your updated password policy applies to both existing and new users, toggle on "Force password change on next login". All users will be required to update their passwords if their current passwords do not meet the newly configured policy.
2. Password Strength
What is password strength?
Password strength is simply a measure of how difficult it is to guess or crack a password.
Authgear currently uses the zxcvbn password strength estimator library, which goes beyond basic requirements (like length or character variety) and uses pattern matching to recognize common insecure passwords.
How to set password strength for your Authgear project
Scroll down to the Advanced sub-section of the Password tab, then click select your preferred option from the Min. password strength level dropdown.

3. Prevent Password Reuse
Toggle on Prevent Password Reuse to ensure a new, unique password is set during password changes.
In the following example, the new password cannot match any password used within the 90 days, or any last 3 previously used passwords.

4. Keywords to be Excluded from Password
You can also disallow specific keywords in the user's password. Simply add them to the "Keywords to be excluded" field, and the admin or user will not be able to set a password containing the listed keywords.

5. Password Expiry
See Password Expiry
Once you're done, remember to hit Save to keep your changes.
Last updated
Was this helpful?