All Projects → markshust → magento2-module-disabletwofactorauth

markshust / magento2-module-disabletwofactorauth

Licence: MIT license
The DisableTwoFactorAuth module provides the ability to disable two-factor authentication.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to magento2-module-disabletwofactorauth

module-dsu-client
No description or website provided.
Stars: ✭ 17 (-88.44%)
Mutual labels:  magento, magento2, magento2-module
magento-2-infinite-scroll
Magepow Infinite Scroll extension Free hepls website loading content and products without reloading page
Stars: ✭ 17 (-88.44%)
Mutual labels:  magento, magento2, magento2-module
magento2-db-log-cleaner
Magento2 Cron Log Cleaning
Stars: ✭ 23 (-84.35%)
Mutual labels:  magento, magento2, magento2-module
magento2-allegro
Magento 2 Allegro Integration module
Stars: ✭ 25 (-82.99%)
Mutual labels:  magento, magento2, magento2-module
module-conflict-detector
magefan.com/magento2-conflict-detector
Stars: ✭ 40 (-72.79%)
Mutual labels:  magento, magento2, magento2-module
module-blog-m22
Fixes for Blog on Magento 2.2.x
Stars: ✭ 21 (-85.71%)
Mutual labels:  magento, magento2, magento2-module
module-notifications
Notify the Magento 2 admin user about disabled caches or new customer reviews.
Stars: ✭ 20 (-86.39%)
Mutual labels:  magento, magento2, magento2-module
MultipleLayeredNavigation-M2
Magento 2 Multiple Layered Navigation extension.
Stars: ✭ 20 (-86.39%)
Mutual labels:  magento, magento2, magento2-module
magento2-language-tr tr
Magento2 Turkish Translation / Magento2 Türkçe Çevirisi
Stars: ✭ 28 (-80.95%)
Mutual labels:  magento, magento2, magento2-module
Brazilian-Solutions
Este repositório permite a discussão da comunidade brasileira Magento sobre módulos e soluções para o mercado brasileiro.
Stars: ✭ 19 (-87.07%)
Mutual labels:  magento, magento2, magento2-module
magento2-module-simpledata
The SimpleData module simplifies calling Magento data structures.
Stars: ✭ 82 (-44.22%)
Mutual labels:  magento, magento2, magento2-module
module-login-as-customer
Allows admin to login as a customer (enter to customer account).
Stars: ✭ 104 (-29.25%)
Mutual labels:  magento, magento2, magento2-module
magento2-guest-to-customer
Guest to Customer for Magento2 - Quickly and easily convert existing guest checkout customers to registered customers.
Stars: ✭ 66 (-55.1%)
Mutual labels:  magento, magento2, magento2-module
magento2
For any issues or questions please get in touch with us via [email protected]
Stars: ✭ 15 (-89.8%)
Mutual labels:  magento, magento2, magento2-module
magento2-module-ordergrid
The Order Grid module adds more details to the order grid in the admin.
Stars: ✭ 54 (-63.27%)
Mutual labels:  magento, magento2, magento2-module
module-dsu
No description or website provided.
Stars: ✭ 18 (-87.76%)
Mutual labels:  magento, magento2, magento2-module
magento2-customer-account-links-manager
Customer Account Links Manager allows you to quickly and easily remove customer account links from Magento 2 customer dashboard.
Stars: ✭ 40 (-72.79%)
Mutual labels:  magento, magento2, magento2-module
Magento-Quickorder
Magento Quickorder module, enables bulk order creation by inputting SKUs & quantities.
Stars: ✭ 30 (-79.59%)
Mutual labels:  magento, magento2, magento2-module
Slider-M2
Slider extension for Magento 2.x
Stars: ✭ 17 (-88.44%)
Mutual labels:  magento, magento2, magento2-module
magento2-edit-order-email
Magento2 - Edit Order Email from Admin
Stars: ✭ 30 (-79.59%)
Mutual labels:  magento, magento2, magento2-module

MarkShust_DisableTwoFactorAuth

Provides the ability to disable two-factor authentication.

Supported Magento Versions Latest Stable Version Composer Downloads Maintained - Yes

Table of contents

Summary

With the release of Magento 2.4, two-factor authentication (also known as 2FA) became enabled by default, with no ability to disable it in either the admin or console. However, there are situations which may require 2FA to be disabled or temporarily turned off, such as within development or testing environments.

This module automatically disables 2FA while in developer mode (since version 2.0.0), and adds the missing toggle to turn 2FA on or off from the admin for other environments. It does this by hooking into the core code in a very seamless manner, just as would be done if this toggle existed in the core code. Installing this module should not open any security holes, as it just works off of a simple config toggle which, if not present, falls back to the default functionality.

You can also toggle 2FA back on while in developer mode, if you need to test your code functionality while 2FA is enabled.

Demo

Why

Why should you use this module? I hear all of the time that you can just disable Magento's 2FA module. There is a large inherent issue with doing this though.

When you disable a module, it updates the app/etc/config.php file with the removed module, which will eventually make its way upstream (accidentally committed to version control or unintendedly leaving your development environment). This will disable 2FA on staging/production, which is a big security concern. This module resolves this because you can keep it installed & enabled on dev/stage/prod, but control whether or not 2FA is enabled or disabled with configuration settings or environment variables. This means you can have it permanently disabled on dev, but have it permanently enabled in all other environments, all while keeping this module installed in all environments.

Installation

composer require markshust/magento2-module-disabletwofactorauth
bin/magento module:enable MarkShust_DisableTwoFactorAuth
bin/magento setup:upgrade

Usage

This module automatically disables 2FA in developer mode (since version 2.0.0). In any other deployment mode, 2FA is kept enabled by default. This is to prevent any unexpected side effects or security loopholes from being introduced during automated installation processes.

Disable 2FA

It may still be desirable to disable 2FA in non-production environments, such as within testing or internal staging environments. For these cases, 2FA is not automatically disabled. However, there are toggles to override the default Magento settings to disable 2FA within these environments.

You can also bypass 2FA for API token generation. This can be useful for third-party vendors during module development.

NOTE: Always keep 2FA enabled within production environments for security purposes.

2FA

To disable 2FA, visit Admin > Stores > Settings > Configuration > Security > 2FA and set Enable 2FA to No.

CLI: bin/magento config:set twofactorauth/general/enable 0

2FA for API Token Generation

To disable 2FA for API Token Generation, visit Admin > Stores > Settings > Configuration > Security > 2FA and set Enable 2FA for API Token Generation to No.

CLI: bin/magento config:set twofactorauth/general/enable_for_api_token_generation 0

Enable 2FA in developer mode

This module automatically disables 2FA while developer mode is enabled, but there may be situations when you need 2FA enabled during development. Rather than needing to disable this module, you can just disable this configuration setting in the admin.

To enable 2FA while in developer mode, visit Admin > Stores > Settings > Configuration > Security > 2FA and set Disable 2FA in Developer Mode to No.

CLI: bin/magento config:set twofactorauth/general/disable_in_developer_mode 0

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].