AuthTwoFactorBackend class abstract interface

Required persistence boundary for the optional two-factor plugin.

Durable adapters implement these typed commands with backend-native transactions. The plugin never supplies a transaction callback and never falls back to coordinating individual writes itself.

Properties

challengeStore AuthTwoFactorChallengeStore
Typed pending-challenge persistence owned by this backend.
no setter
factorStore AuthTwoFactorStore
Typed factor-record persistence owned by this backend.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stepUpStore AuthTwoFactorStepUpStore
Typed step-up-proof persistence owned by this backend.
no setter
trustedDeviceStore AuthTwoFactorTrustedDeviceStore
Typed trusted-device persistence owned by this backend.
no setter

Methods

beginChallenge(AuthTwoFactorBeginChallengeCommand command) FutureOr<AuthTwoFactorCommandResult>
Atomically starts or bypasses a pending challenge.
beginEnrollment(AuthTwoFactorBeginEnrollmentCommand command) FutureOr<AuthTwoFactorCommandResult>
Atomically starts or replaces an enrollment.
completeChallenge(AuthTwoFactorCompleteChallengeCommand command) FutureOr<AuthTwoFactorCommandResult>
Atomically completes a pending TOTP challenge.
completeRecoveryChallenge(AuthTwoFactorCompleteRecoveryChallengeCommand command) FutureOr<AuthTwoFactorCommandResult>
Atomically completes a pending recovery challenge.
disable(AuthTwoFactorDisableCommand command) FutureOr<AuthTwoFactorCommandResult>
Atomically disables two-factor state.
issueTrustedDevice(AuthTwoFactorIssueTrustedDeviceCommand command) FutureOr<AuthTwoFactorCommandResult>
Atomically issues a trusted-device record.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
regenerateRecoveryCodes(AuthTwoFactorRegenerateRecoveryCodesCommand command) FutureOr<AuthTwoFactorCommandResult>
Atomically replaces recovery-code digests.
revokeAllStepUp(String userId) FutureOr<void>
Revokes every step-up proof belonging to userId.
revokeStepUp(AuthTwoFactorRevokeStepUpCommand command) FutureOr<void>
Revokes step-up proofs according to command.
revokeTrustedDevices(AuthTwoFactorRevokeTrustedDevicesCommand command) FutureOr<void>
Revokes trusted devices according to command.
toString() String
A string representation of this object.
inherited
useRecoveryCode(AuthTwoFactorUseRecoveryCodeCommand command) FutureOr<AuthTwoFactorCommandResult>
Atomically consumes a recovery code.
verifyEnrollment(AuthTwoFactorVerifyEnrollmentCommand command) FutureOr<AuthTwoFactorCommandResult>
Atomically activates an enrollment.
verifyStepUp(AuthTwoFactorVerifyStepUpCommand command) FutureOr<AuthTwoFactorCommandResult>
Atomically issues a session-bound step-up proof.
verifyTotp(AuthTwoFactorVerifyTotpCommand command) FutureOr<AuthTwoFactorCommandResult>
Atomically verifies a TOTP code.

Operators

operator ==(Object other) bool
The equality operator.
inherited