Class ChangeEmailOptions
N-4 (Session E, sub-step N4-7): tunables for the verify-then-commit change-of-e-mail
flow (direct-vm://identity-me-change-email-request +
direct-vm://identity-change-email-confirm).
Unlike the soft path on /me/profile (which overwrites the e-mail immediately
and lazily resets EmailVerified=false), the change-email flow defers the
commit until the user proves control of the new address: the confirmation link is
e-mailed to the new address; the current address remains the canonical login
until the link is clicked. On successful confirm the swap is atomic and
EmailVerified is set to true in the same transaction.
Feature-gated by : when false (default), neither route is
registered and the HTTP facade returns 404. Per-client URL whitelisting lives on
ApplicationProps.ChangeEmailUris.
public sealed class ChangeEmailOptions
Inheritance
Properties
Enabled
Master switch. When false (default), the request + confirm direct-vm routes
public bool Enabled { get; set; }
InvalidatePreviousTokensOnRequest
When true (default), issuing a new change-of-e-mail token marks any prior
public bool InvalidatePreviousTokensOnRequest { get; set; }
RejectSoftEmailChange
When true, Processors.MeProfileProcessor ignores the
public bool RejectSoftEmailChange { get; set; }
TokenTtl
Time-to-live for an issued single-use change-of-e-mail token. Recommended range:
public TimeSpan TokenTtl { get; set; }