Class PasswordPolicyOptions

Assembly: redb.Identity.Core.dll

H10 — server-side password policy applied by management, self-service and SCIM
password mutations. All knobs are exposed via the standard Tsak 5-layer config
pipeline (see redb.Identity.Core.config.json:Identity.PasswordPolicy).
Defaults are STRICT (NIST SP 800-63B Draft + OWASP ASVS 4.0.3 §2.1) so a freshly
bootstrapped deployment is secure-by-default; tune per environment.

public sealed class PasswordPolicyOptions

Inheritance

Object→PasswordPolicyOptions

Properties

BreachCheckEnabled

When true, the configured IBreachedPasswordChecker is consulted on

public bool BreachCheckEnabled { get; set; }

HistoryCount

Number of recent password hashes (per user) to retain and reject on reuse. Set to

public int HistoryCount { get; set; }

MaxAge

Maximum age of a password before the user is forced to change it on next login.

public TimeSpan MaxAge { get; set; }

MaxLength

Maximum number of characters accepted. Acts as a DoS guard against pathologically

public int MaxLength { get; set; }

MinLength

Minimum number of characters required. Default 12.

public int MinLength { get; set; }

RequireDigit

Require at least one ASCII digit (0-9). Default true.

public bool RequireDigit { get; set; }

RequireLowercase

Require at least one ASCII lowercase letter (a-z). Default true.

public bool RequireLowercase { get; set; }

RequireSpecial

Require at least one character from . Default false

public bool RequireSpecial { get; set; }

RequireUppercase

Require at least one ASCII uppercase letter (A-Z). Default true.

public bool RequireUppercase { get; set; }

SpecialChars

Set of characters that count as "special" when is on.

public string SpecialChars { get; set; }