Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.
/ magento2-tfa Public archive

Magento 2 Admin Panel Two Factor Authentication

License

Notifications You must be signed in to change notification settings

pmclain/magento2-tfa

Repository files navigation

Magento 2 Admin Panel Two Factor Authentication

Build StatusLatest Stable Version Total Downloads

Two Factor Authentication to the Magento 2 admin panel using Google Authenticator

Server Time

It's extremely important that you keep your server time in sync with some NTP server.

Installation

In your Magento 2 base directory run:
composer require pmclain/magento2-tfa
bin/magento setup:upgrade

  • TFA must be enabled by the individual user by clicking 'Account Setting(user)' in the Magento 2 admin panel.
  • Once there, the user is able to enable the two factor authentication and view the QR code for a Google Authenticator compatible application.
  • Users with TFA enabled will not be able to log into the admin panel without a valid authentication code input on the Magento 2 admin login page.
  • Users with TFA disabled can leave the 'Authenticator Code' field blank during login.

Console Commands

TFA can be disabled using console commands if needed:

Disable TFA For All Admin Users

bin/magento pmclain:tfa:disable

Disable TFA For Single Admin User (by email)

bin/magento pcmlain:tfa:disable [email protected]

Magento Version Compatibility

Release Magento Version
1.1.x 2.2.x
1.0.x 2.1.x
1.0.x 2.0.x

Google Authenticator Apps:

To use the two factor authentication, your user will have to install a Google Authenticator compatible app, below are some currently available:

License

Open Software License v3.0