Skip to content

Fortified IDDocs

Custom rule

Use a regular expression to define your password policy.

{
"type":"regex",
"regex": "<regex_expression>",
"description": "password_reset.rules.regex"
}

Example to disallow static and dynamic values

Section titled “Example to disallow static and dynamic values”

This example disallows the use of the static value Name-of-our-company and givenName, sn, sAMAccountName, or mail fetched from the SAML ticket in the password.

{
"type": "regex",
"regex": "^((?!(?i:${session.givenName})|(?i:${session.sn})|(?i:${session.sAMAccountName})|(?i:${session.mail})|(?i:Name-of-our-company)).)*$",
"description": "password_reset.rules.regex"
}