TwoFactorRequest Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The request type for the "/manage/2fa" endpoint added by MapIdentityApi<TUser>(IEndpointRouteBuilder).
public sealed class TwoFactorRequest
type TwoFactorRequest = class
Public NotInheritable Class TwoFactorRequest
- Inheritance
-
TwoFactorRequest
Constructors
TwoFactorRequest() |
Properties
Enable |
An optional Boolean to enable or disable the two-factor login requirement for the authenticated user. If null or unset, the current two-factor login requirement for the user will remain unchanged. |
ForgetMachine |
An optional Boolean to clear the cookie "remember me flag" if present. This has no impact on non-cookie authentication schemes. |
ResetRecoveryCodes |
An optional Boolean to reset the RecoveryCodes to new random values if |
ResetSharedKey |
An optional Boolean to reset the SharedKey to a new random value if |
TwoFactorCode |
The two-factor code derived from the SharedKey. This is only required if Enable is set to |