TwoFactorAuth
Two-factor authentication with TOTP, WebAuthn or a custom external mechanism.
Generate a TOTP seed
Generates TOTP seed and QR code for 2FA. User needs to verify the seed value using 2fa/totp/enable endpoint
Enable TOTP
Enables TOTP for a user by verifying the seed value generated from 2fa/totp/setup
Disable TOTP
Disables TOTP for a user. Does not affect other 2FA mechanisms a user might have set up
Validate a TOTP token
Checks if a TOTP token provided by a User is valid for authentication
Disable all 2FA
Disables all 2FA mechanisms a user might have set up
Enable custom 2FA
Enables custom 2FA, which disables the account password for IMAP, POP3 and SMTP.
Disable custom 2FA
Disables custom 2FA. If it was the only 2FA method, the account password works for IMAP, POP3 and SMTP again.
List WebAuthn credentials
Lists the WebAuthn credentials registered for a user.
Delete a WebAuthn credential
Deletes a WebAuthn credential of a user.
Start WebAuthn registration
Starts the registration of a WebAuthn authenticator and returns the registration challenge.
Complete WebAuthn registration
Attestation is used to verify the authenticity of the authenticator and provide assurances about its features.
Start WebAuthn authentication
Starts a WebAuthn authentication and returns the PublicKeyCredentialRequestOptions object for the client.
Complete WebAuthn authentication
Verifies the WebAuthn authentication assertion and authenticates the user.