docs/content/configuration/security/password-policy.md
Authelia allows administrators to configure an enforced password policy.
{{< config-alert-example >}}
password_policy:
standard:
enabled: false
min_length: 8
max_length: 0
require_uppercase: false
require_lowercase: false
require_number: false
require_special: false
zxcvbn:
enabled: false
min_score: 3
This section describes the individual configuration options.
This section allows you to enable standard security policies.
{{< confkey type="boolean" default="false" required="no" >}}
Enables standard password policy.
{{< confkey type="integer" default="8" required="no" >}}
Determines the minimum allowed password length.
{{< confkey type="integer" default="0" required="no" >}}
Determines the maximum allowed password length.
{{< confkey type="boolean" default="false" required="no" >}}
Indicates that at least one UPPERCASE letter must be provided as part of the password.
{{< confkey type="boolean" default="false" required="no" >}}
Indicates that at least one lowercase letter must be provided as part of the password.
{{< confkey type="boolean" default="false" required="no" >}}
Indicates that at least one number must be provided as part of the password.
{{< confkey type="boolean" default="false" required="no" >}}
Indicates that at least one special character must be provided as part of the password.
This password policy enables advanced password strength metering, using zxcvbn.
Note that this password policy do not restrict the user's entry it just gives the user feedback as to how strong their password is.
{{< confkey type="boolean" default="false" required="no" >}}
{{< callout context="caution" title="Important Note" icon="outline/alert-triangle" >}} Only one password policy can be applied at a time. {{< /callout >}}
Enables zxcvbn password policy.
{{< confkey type="integer" default="3" required="no" >}}
Configures the minimum zxcvbn score allowed for new passwords. There are 5 levels in the zxcvbn score system (taken from github.com/dropbox/zxcvbn):
We do not allow score 0, if you set the min_score value to 0 instead the default will be used instead.