Class IdentityValidationOptions
Server-side input-length limits used by Identity validation helpers.
All values default to the original hardcoded constants.
public sealed class IdentityValidationOptions
Inheritance
Properties
IdentifierPattern
Optional override for the identifier regex (logins, role names, etc.).
public string? IdentifierPattern { get; set; }
MaxDescriptionLength
Max length for free-form descriptions. Default 1024.
public int MaxDescriptionLength { get; set; }
MaxDisplayNameLength
Max length for free-form display names. Default 256.
public int MaxDisplayNameLength { get; set; }
MaxIdentifierLength
Max length for identifier-like fields (login, name, etc.). Default 128.
public int MaxIdentifierLength { get; set; }
MaxPasswordLength
Maximum length for passwords / client secrets. Default 512.
public int MaxPasswordLength { get; set; }
MinPasswordLength
Minimum length for passwords / client secrets. Default 8.
public int MinPasswordLength { get; set; }