mod_auth2fa

Two-factor authentication module adding TOTP setup, verification flows, and related auth checks.

Accepted Events

This module handles the following notifier callbacks:

  • observe_admin_menu: Add admin menu for external services using m_auth2fa:is_totp_enabled.

  • observe_auth_postcheck: Check the 2FA code, called after password check passed using m_auth2fa:is_totp_enabled.

Delegate callbacks:

  • event/2 with postback messages: auth2fa_remove_confirm, auth2fa_ug, dialog_2fa, request_2fa.

  • event/2 with submit messages: auth2fa_remove, auth2fa_set.

Edit on GitHub

Models

auth2fa

Model for two-factor authentication state and setup, including TOTP QR/image generation, mode checks, reset checks, and…

Dispatch rules

dispatch

Dispatch rules Name Path Resource Args admin_auth2fa_config [“admin”,”authentication-2fa”] controller_admin [{ssl

Referred by

All dispatch rules

All the dispatch rules from all modules. For a background on dispatch rules, see The URL dispatch system.