Skip to main content

Module two_factor

Module two_factor 

Source

Structs§

AccountLockoutConfig
Consecutive failed sign-in verifications across factors and challenges.
BackupCodeVerified
Public recovery result, with a token only when session publication was requested.
BackupCodesOutput
DisableTwoFactorInput
Password authority for disabling the current user’s factor.
EnableTwoFactorInput
Password authority and enrollment method for enabling the current user’s factor.
GenerateBackupCodesRequest
Password admission for regenerating the current owner’s recovery codes.
GetTotpUriInput
Password authority for retrieving the current user’s stored authenticator URI.
TotpOutput
TotpUriOutput
An authenticator URI recovered from the caller’s stored factor.
TotpVerified
Session token and public identity returned after authenticator verification.
TwoFactorConfig
Public configuration for the two-factor plugin.
TwoFactorDisabled
The caller’s factor was disabled and its current session replaced.
TwoFactorOtpSent
A code was persisted and handed to the configured delivery policy.
TwoFactorPlugin
Two-factor authentication plugin providing TOTP, OTP, and backup code flows.
VerifyBackupCodeRequest
Recovery code and optional session/device publication preferences.
VerifyOtpRequest
Delivered code and optional trusted-device preference.
VerifyTotpRequest
Authenticator code and optional trusted-device preference.

Enums§

TwoFactorBackupStorage
Backup persistence policy. Encrypted storage is the pinned default.
TwoFactorEnabled
A generated authenticator enrollment or an immediately enabled OTP factor.
TwoFactorMethod
The supported factor enrollment methods.
TwoFactorOtpStorage
Persistence format for delivered two-factor OTPs.

Traits§

SendTwoFactorOtp
Callback used by the two-factor plugin to deliver a one-time password.
TwoFactorBackupCipher
Async persistence callbacks for the complete backup-code JSON string.
TwoFactorOtpCipher
Application-owned reversible OTP representation.
TwoFactorOtpHasher
Application-owned irreversible OTP representation.

Type Aliases§

GenerateBackupCodesInput
Public input for direct backup-code regeneration.
VerifyBackupCodeInput
Public input for direct recovery-code verification.
VerifyOtpInput
Public input for direct delivered-code verification.
VerifyTotpInput
Public input for direct authenticator verification.