Installation
Prepare to install
Installation requires Marketplace module. It’s our module that registers our packages repository in composer.json file, saves its credentials to the auth.json file, automates a bunch of complex commands required to run prior and after module installation, and provides easy to use module installer.
composer require swissup/module-marketplace &&\
bin/magento setup:upgrade --safe-mode=1 &&\
bin/magento marketplace:channel:enable swissuplabs
You’ll be asked to activate your domain and enter your key. Get identity key(s) and activate the domain on the site where you’ve downloaded the product:
Install
When Marketplace module is installed you can proceed with installation in teminal:
composer require swissup/tfa &&\
bin/magento setup:upgrade --safe-mode=1 &&\
bin/magento setup:di:compile &&\
bin/magento setup:static-content:deploy -f

- 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.
Activating the extension
-
Open your admin user account settins at
System > Permisions > All Users > Your User > Tab "Two Factor Authentication" -
Scan QR code with Google Authenticator application using your smartphone.
-
Insert the key you’ve got on your mobile device into the verification key field.
-
That’s all. You’ve enabled the protection for that admin user. Try logout and login with verification key. Please notice that key is got refreshed every 30 seconds. In case you have not enabled the protection for some users, the verification key will be ignored for those users.
Google Authenticator Apps:
To use the two factor authentication, your user will have to install a Google Authenticator compatible app, those are some of the currently available:
- Authy for iOS, Android, Chrome, OS X
- FreeOTP for iOS, Android and Pebble
- Google Authenticator for iOS
- Google Authenticator for Android
- Google Authenticator (port) on Windows Store
- Microsoft Authenticator for Windows Phone
- LastPass Authenticator for iOS, Android, OS X, Windows
- 1Password for iOS, Android, OS X, Windows