-
-
Notifications
You must be signed in to change notification settings - Fork 963
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make the password policy more configurable (#2118)
Closes #970 Co-authored-by: aeneasr <[email protected]>
- Loading branch information
Showing
8 changed files
with
155 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
id: password-policy | ||
title: Configuring The Password Policy | ||
--- | ||
|
||
The password policy is a set of rules that define the password requirements for | ||
Kratos identities. They can be changed by modifying the following configuration | ||
parameters: | ||
|
||
```yaml title=path/to/kratos/config.yml | ||
selfservice: | ||
methods: | ||
password: | ||
enabled: true | ||
config: | ||
haveibeenpwned_enabled: true | ||
min_password_length: 8 | ||
identifier_similarity_check_enabled: true | ||
``` | ||
#### `haveibeenpwned_enabled` | ||
|
||
If set to `true`, the password policy will check if the password has been found | ||
in the [Have I Been Pwned](https://haveibeenpwned.com/) database. The default | ||
value is `true`. | ||
|
||
#### `min_password_length` | ||
|
||
The minimum length of the password. The default value is `8`, the minimum | ||
allowed value is `6`. | ||
|
||
#### `identifier_similarity_check_enabled` | ||
|
||
If set to `true`, the password policy will check if the password is similar to | ||
the user identifier. The default value is `true`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters