Expand description
Two-factor authentication: the callback the caller implements and the TOTP exchange that drives it.
Only TOTP (Google Authenticator) is implemented. WebAuthn and Duo extend TwoFactorUi later.
Enumsยง
- MfaOutcome ๐
- The result of submitting a second factor: verified, or a rejected code that asks for a restart.
- Totp
Result - The outcome of a two-factor prompt.
Constantsยง
- MFA_
ENDPOINT ๐
Traitsยง
- TwoFactor
Ui - Callback for interactive two-factor authentication.
Functionsยง
- perform_
second_ ๐factor_ authentication - Prompts for and submits a TOTP code. WebAuthn and Duo are not supported yet.
- submit_
totp ๐ - Submits a TOTP code to
v1/auth/mfa. The remember-me token in the response is ignored (one-shot import).