Setup Role Based 2FA for Drupal
Overview
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.
Installation Steps
- Using Composer
- Using Drush
- Manual Installation
Prerequisites:
- 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
Configuration Steps
Setup Role based 2FA
- Register/Login with miniOrange.
- Navigate to Login Settings tab.
- Scroll down to the Role based 2FA section and enable the role based 2FA checkbox then you can choose specific roles for which you want to enable two factor authentication.
- Click on the Save Settings button.
User Experiance:
- 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.
Additional Features:
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.
- Passwordless Login
- Role Based 2FA (Enable 2FA for specific roles)
- Domain Based 2FA
- Remember My Device