U2F-or-TOTP 2nd Factor Authentication

This modules enables simultaneously U2F and TOTP (like Gitlab). Users can so use their TOTP instead if they don't have their U2F device.

The difference with enabling both U2F and TOTP is that there is only one page displayed instead of displaying first a choice menu.

The corresponding registration module authorize U2F registration only if user has already registered a TOTP secret.

Configuration

In the manager (advanced parameters), you just have to enable it:

Every other parameters of U2F and TOTP can be set in the corresponding 2F modules except that you should not enable them.
If you want to give a different level for U2F or TOTP, leave this parameter blank and set U2F ant TOTP “authentication level” in corresponding modules.

Self-registration

This module has no self-registration. You must use U2F and TOTP self registration modules. Example: suppose you want to authorize U2F registration only if a TOTP secret is registered:

Automatically, U2F registration will be hidden for unregistered TOTP users and displayed then.