Force TFA

Component ID

2372189

Component name

Force TFA

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module is a helper module for Two Factor Authentication (https://www.drupal.org/project/tfa) and specifically the TFA_basic module (https://www.drupal.org/project/tfa_basic)

It creates the ability to require Two Factor Authenticaion on a role while still allowing the user to log in and set up TFA without being locked out. The current TFA_basic plugins module will automatically lock out all users with the permission "Require TFA process" who have not already set up TFA.

If you wish to require certain roles to use Two Factor Authentication, but want them to be able to set up the process after their account has been created, this module allows that process.

To use the module, go to the settings page and choose the roles that should be forced to set up TFA. next define the pages that these users should be able to access (in most cases just user/ and user/*

After setup, if a user logs in and attempts to go to any page but the ones allows, they will be redirected to the TFA setup page with a message telling them that they need to set up TFA to gain access.

I wrote this as a fix for a problem, but do not have time to maintain it. Anyone who wants it is welcome to take it from here.