Class PasswordExpirySettings
- Namespace
- KadicAuth.Application.Common
- Assembly
- KadicAuth.Application.dll
Configures mandatory periodic password rotation for privileged users (TenantSuperAdmin). Mapped from the "PasswordExpiry" section in appsettings.
public sealed class PasswordExpirySettings
- Inheritance
-
objectPasswordExpirySettings
Fields
SectionName
public const string SectionName = "PasswordExpiry"
Field Value
- string
Properties
EnableForSuperAdmins
When true, TenantSuperAdmin accounts are subject to periodic password rotation. Default: false.
public bool EnableForSuperAdmins { get; set; }
Property Value
- bool
ExpiryDays
Number of days before a TenantSuperAdmin's password expires. Only evaluated when EnableForSuperAdmins is true. Default: 90.
public int ExpiryDays { get; set; }
Property Value
- int
WarnBeforeExpiry
When true, a warning is included in the login response N days before expiry. Default: true.
public bool WarnBeforeExpiry { get; set; }
Property Value
- bool
WarnDaysBeforeExpiry
Number of days before expiry at which to start issuing warnings. Default: 14.
public int WarnDaysBeforeExpiry { get; set; }
Property Value
- int