Download the PHP package mageplaza/module-two-factor-authentication without Composer

On this page you can find all versions of the php package mageplaza/module-two-factor-authentication. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-two-factor-authentication

Magento 2 Two Factor Authentication Extension FREE

Magento 2 Two-Factor Authentication from Mageplaza is built to ensure the highest security for your Magento 2 stores. The extension can force using 2FA or auto skip 2FA request for trusted devices. Mobile compatibility is also supported in this module.

1. Documentation

2. FAQ

Q: I got error: Mageplaza_Core has been already defined

A: Read solution here

Q: How many steps admin has to pass to access admin data?

A: There are two steps. The first is simple with username and password, the second is authentication code provided by the mobile authentication app

Q: Which apps can I use for 2FA?

A: We recommend you use Authy and Google Authentication for the best result.

Q: If I do not want to be required 2FA the next time, how can I do?

A: You can do by enabling the trusted device function and set the trusted time by days. Then, in the first login, click on Trust this device for x days. It can be done properly.

Q: I am a store owner. Our store has many admins. How can I set 2FA for specific accounts only?

A: Kindly follow this guide. Firstly, turn off Forcing to use 2FA function. Then the admin accounts which is not set as a trusted device and turn on 2FA will have to use 2FA.

Q: Can I know the list of trusted device and remove any accounts if any changes require?

A: Yes, you can easily see from admin backend and click on remove button to do any removing accounts.

3. How to install Two-Factor Authentication extension for Magento 2

Install via composer (recommend): Run the following command in Magento 2 root folder:

With Marketing Automation (recommend):

Without Marketing Automation:

For versions below Magento version 2.4.0, it requires to install the library of bacon-qr-code via composer by the following command

4. Highlight Features of Magento 2 Two Factor Authentication

Two steps to access

Two steps to access

Forcing to use Two-factor authentication

Magento 2 Two Factor Authentication (2FA) supports backend store data to be better protected with two steps of verification. If forcing feature is enable, admins are required to set up two-factor authentication before they have the ability to access all data from backend panel.

Support from mobile authentication apps

To activate two-factor authentication, the support from mobile authentication apps is needed. Admins need to download apps such as Authy, Duo, Google Authentication. After registering authenticator accounts by scanning QR code or manually entering the provided key, the app will create a unique verification code which is used to confirm the admin account.

No requirement if being trusted

Magento 2 Two Factor Authentication

Activate trusted device function, set trusted time

To save time for trusted admin accounts after the first time login, Trusted device function is supported. After this feature is configured well, via a click to require trust for next login, the device will be listed to trusted list and not be required authentication code in a specific time.

Quick login without authentication code in the next login

As a result, after the first time confirming the account successfully, as long as within the trusted time, the second verification is not required for the next login times. With this feature, it is time-saving for key store admins whose accounts are believed to be reliable.

Trusted device list

Magento 2 Two Factor Authentication

It is easy to manage all trusted verified admin roles by the Trusted Device list. The information of logged users are recorded clearly with the following details:

Besides, super admin or store owners can easily remove any admin accounts from the trusted device in case there is any account updates. Therefore, admin panel can be protected well from the ill-intentioned access.

5. More Features of Magento 2 2FA

Force Using 2FA

Enable/ Disable requiring users to register 2FA

Trusted Time

Set trusted time for user accounts by days

Mobile friendly

Be well responsive to mobiles, desktop, tablets, and other screen sizes.

6. Full Features List

General Configuration

Admin account setting 2FA

7. Magento 2 Two Factor Authentication User Guide

How to use Two Factor Authentication

When logging in the backend, admin users need to fill in the authentication factors

Magento 2 Two Factor Authentication

When turn on Trusted Device, authentication request page looks like this:

Magento 2 Two Factor Authentication

How to Configure Two Factor Authentication

7.1. Configuration

From Admin panel, go to Stores > Configuration > Mageplaza > Two factor Authentication

Magento 2 Two Factor Authentication

7.2. My Account Admin

Admins need to go to Account Setting to set QR/Pin code

Register 2FA:

Magento 2 Two Factor Authentication

Check and remove Trusted Devices:

Magento 2 Two Factor Authentication

Get more Free extension on Github:

Explore Magento 2 modules on Marketplace:


All versions of module-two-factor-authentication with dependencies

PHP Build Version
Package Version
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mageplaza/module-two-factor-authentication contains the following files

Loading the files please wait ....