Skip to content
Snippets Groups Projects
Select Git revision
  • 2.x
  • 3416791-resolve-sa-contrib-2024-003-in
  • 8.x-1.x
  • 7.x-2.x
  • 7.x-1.x
  • 6.x-1.x
  • master
  • 8.x-1.10
  • 2.0.0-alpha4
  • 2.0.0-alpha3
  • 8.x-1.9
  • 7.x-2.4
  • 8.x-1.8
  • 8.x-1.7
  • 8.x-1.6
  • 8.x-1.5
  • 8.x-1.4
  • 8.x-1.3
  • 8.x-1.2
  • 8.x-1.1
  • 2.0.0-alpha2
  • 7.x-2.3
  • 8.x-1.0
  • 8.x-1.0-rc1
  • 2.0.0-alpha1
  • 8.x-1.0-alpha9
  • 8.x-1.0-alpha10
27 results

tfa-3416791

  • Clone with SSH
  • Clone with HTTPS
  • Forked from project / tfa
    19 commits behind the upstream repository.
    Conrad Lara's avatar
    Issue #3392427 by cmlara, gold: Use an EventSubscriber to process one time login links
    Conrad Lara authored
    94411a51
    History

    Two-factor Authentication (TFA) module for Drupal

    TFA is a base module for providing two-factor authentication for your Drupal site. As a base module, TFA handles the Drupal integration work, providing flexible and well tested interfaces to enable seamless, and configurable, choice of various two-factor authentication solutions like Time-based One Time Passwords, SMS-delivered codes, recovery codes, or integrations with third-party suppliers like Authy, Duo and others.

    Project Page
    Issue Tracker
    Online Documentation

    Requirements

    This module requires the following modules:

    Installation and use

    TFA module can be installed like other Drupal modules by placing this directory in the Drupal file system (for example, under modules/) and enabling on the Drupal modules page.

    Configuration

    TFA can be configured on your Drupal site at Administration - Configuration - People - Two-factor Authentication. Available plugins will be listed along with their type and configured use, if set.

    Default validation plugin

    The plugin that will be used by default during user authentication. The plugin must be ready for use by the authenticating account. If "Require TFA" is marked then an account that has not setup TFA with the validation plugin will be unable to log in.

    Getting started

    See Getting started for a guide on setting up TFA.

    Testing and development with TFA enabled

    It can be hard to test user authentication in automated tests with the TFA module enabled. Development environments also will likely struggle to login unless they disable TFA or reset the secrets for an account. One solution is to disable the module in the development and testing environment. To quickly disable the module you can run these drush commands to set some config:

    • Disable TFA with drush config-set tfa.settings enabled 0
    • Enable TFA with drush config-set tfa.settings enabled 1