Skip to content

Magento 2 module for 2FA on the frontend

Notifications You must be signed in to change notification settings

YouweGit/frontend2fa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elgentos_Frontend2FA

This extension is based on Neyamtux_Authenticator, which offers 2FA for the backend.

Features

  • Ability to force frontend 2FA for specific customer groups;
  • 2FA is enforced for chosen customer groups meaning the customer has to either setup or authenticate before continuing after logging in;
  • All customers in any group can optionally set their own 2FA;
  • Open the customer in the backend to be able to reset the 2FA secret;
  • Dutch translation files.

Installation

composer require elgentos/frontend2fa
php bin/magento module:enable Elgentos_Frontend2FA
php bin/magento module:enable Neyamtux_Authenticator
php bin/magento setup:upgrade

Integration with other authentication systems

To bypass the 2FA requirement for a specific logged in user, for example if you are using a Single Sign-On system for certain users, set this value in their customer session:

$customerSession->set2faSuccessful(true);

Screenshots

Setup page (in My Account)

image

2FA authentication after logging in when setup is done

image

Configuration in backend

image

2FA reset button in backend

image

License

This project is licensed under the MIT License