You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
7
+
## [2.0.0] - 2021-11-10
8
+
9
+
This is a potentially breaking release, as it changes the overall functionality when Magento is in `developer` mode. A new "Disable 2FA in Developer Mode" system configuration has been created, which is a Yes/No toggle. By default, it is set to Yes so that 2FA is automatically disabled when a Magento site is in `developer` mode. When this is set to No, the two other 2FA configuration dropdowns set the configuration for 2FA. When not in `developer` mode, this toggle has no effect.
10
+
11
+
### Added
12
+
- Add ability to automatically disable 2FA when in developer mode ([#13](https://github.com/markshust/magento2-module-disabletwofactorauth/pull/13)).
Copy file name to clipboardExpand all lines: README.md
+23-13Lines changed: 23 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,14 @@ With the release of Magento 2.4, two-factor authentication (also known as 2FA) b
22
22
ability to disable it in either the admin or console. However, there are situations which may require 2FA to be disabled
23
23
or temporarily turned off, such as within development or testing environments.
24
24
25
-
This module adds the missing toggle to turn 2FA on or off from the admin. It does this by hooking into the core code in
25
+
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
26
26
a very seamless manner, just as would be done if this toggle existed in the core code. Installing this module should not
27
-
open up any security holes, as it just works off of a simple config toggle which if not present, falls back to default
28
-
functionality.
27
+
open any security holes, as it just works off of a simple config toggle which, if not present, falls back to the default
28
+
functionality.
29
+
30
+
You can also toggle 2FA back on while in developer mode, if you need to test your code functionality while 2FA is enabled.
This module keeps 2FA enabled by default. This is to prevent any unexpected side effects or security loopholes from
44
+
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
43
45
being introduced during automated installation processes.
44
46
45
47
### Disable 2FA
46
48
47
-
Enables the bypass of 2FA for admin access. This can be useful within development & integration environments.
48
-
49
-
Visit **Admin > Stores > Settings > Configuration > Security > 2FA** and set *Enable 2FA* to **No**.
49
+
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.
Enables the bypass of 2FA for API token generation. This can be useful for third-party vendors during module development.
61
+
#### 2FA for API Token Generation
58
62
59
-
Visit**Admin > Stores > Settings > Configuration > Security > 2FA** and set *Enable 2FA for API Token Generation* to **No**.
63
+
To disable 2FA for API Token Generation, visit**Admin > Stores > Settings > Configuration > Security > 2FA** and set *Enable 2FA for API Token Generation* to **No**.
*NOTE: Always keep 2FA enabled within production environments for security purposes.*
67
+
### Enable 2FA in developer mode
68
+
69
+
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.
70
+
71
+
To enable 2FA while in developer mode, visit **Admin > Stores > Settings > Configuration > Security > 2FA** and set *Disable 2FA in Developer Mode* to **No**.
0 commit comments