Search Results :

×

Setup Role Based 2FA for Drupal

Role Based 2FA provides you with the ability to add a layer of security with 2FA/TFA on selected roles like admin while allowing other users to log in to the site only with basic authentication with a Drupal username and Password. This document will walk you through the steps to configure 2FA/MFA for specific Drupal roles with Drupal 2FA module.The Drupal Two Factor Authentication - 2FA / Passwordless Login is available for Drupal 7, Drupal 8, Drupal 9, Drupal 10, and Drupal 11.

  • Download the module:
    Composer require 'drupal/miniorange_2fa'
  • Navigate to Extend menu on your Drupal admin console and search for miniOrange Second Factor Authentication using the search box.
  • Enable the module by checking the checkbox and click on install button.
  • Configure the module at
    {BaseURL}/admin/config/people/miniorange_2fa/customer_setup
  • Install the module:
    drush en miniorange_2fa
  • Clear the cache:
     drush cr
  • Configure the module at
    {BaseURL}/admin/config/people/miniorange_2fa/customer_setup
  • Navigate to Extend menu on your Drupal admin console and click on Install new module button.
  • Install the miniOrange Second Factor Authentication module either by downloading the zip or from the URL of the package (tar/zip).
  • Click on Enable newly added modules.
  • Enable this module by checking the checkbox and click on install button.
  • Configure the module at
    {BaseURL}/admin/config/people/miniorange_2fa/customer_setup
  • The following checkboxes are enabled under Login Settings tab of the module:
    • Enable Two-Factor module
    • Invoke Inline Registration to setup 2nd factor for users
  • Register/Login with miniOrange.
  • Navigate to 2FA Policy for End Users tab.
  • Scroll down to the 2FA Restrictions section.
  • Under this section toggle the switch for the Enable role based 2FA then you can choose specific roles for which you want to enable two factor authentication.
Drupal-2FA-Role-Base-Enable-Specific-Role
  • Click on the Save Settings button.
  • Open a new browser/private window and navigate to login page of Drupal site.
  • Log in with your Drupal credentials.
  • If the user has configured Drupal role, then 2FA will be invoked.
  • User will be logged in after the second fector authentication.

Explore the advanced features offered by the module with full-featured trial. You can initiate the trial request using Request 7-day trial button under Register/Login tab of the module or reach out to us at drupalsupport@xecurify.com for one-on-one assistance from Drupal expert.

ADFS_sso ×
Hello there!

Need Help? We are right here!

support