Google Authenticator Integration for Magento 2
This module integrates Google Authenticator into Magento 2 admin panel, to provide two factor authentication for store managers., (*1)
Features
- Two factor authentication for Magento 2 store administrators
- May be enabled / disabled per user
- Login instructions mailed to enabled users on feature activation / secret (re)generation
- Command-line interface
Installation
You will need SSH access to your server., (*2)
Run the following commands in your Magento 2 root folder:, (*3)
composer config repositories.qextensions git https://github.com/QSolutionsStudio/2FactorAuth-M2.git
, (*4)
(url will change for public version ofc), (*5)
composer require qextensions/google2factor
, (*6)
php bin/magento module:enable Qextensions_Google2factor
, (*7)
php bin/magento setup:upgrade
, (*8)
You have now enabled and installed the module, but in order to make it work, you need to configure it first., (*9)
Configuration
Go to your store's configuration to enable the extension:, (*10)
, (*11)
, (*12)
, (*13)
, (*14)
Then generate your secret code for Google Authenticator app:, (*15)
, (*16)
, (*17)
Now new field will appear on login screen, although it won't be required until you enable two factor authentication for given user:, (*18)
, (*19)
In order to do that, go to your account settings:, (*20)
, (*21)
, (*22)
This may be done for other users as well, from admin user edit form or via Magento's command line interface:, (*23)
, (*24)
All set, now you will be required to fill in the valid login code while signing into your Magento 2 dashboard:, (*25)
, (*26)