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
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/guides/v2.3/security/two-factor-authentication.md
+35-21Lines changed: 35 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -5,22 +5,46 @@ functional_areas:
5
5
- Configuration
6
6
---
7
7
8
-
Magento Two-Factor Authentication (2FA) improves security by requiring two-step authentication to access the Magento Admin UI from all devices. The extension supports multiple authenticators including Google Authenticator, Authy, Duo, and U2F keys. It applies to Magento Admin UI users only; it does not apply to storefront customer accounts.
8
+
Magento Two-Factor Authentication (2FA) improves security by requiring two-step authentication to access the Magento Admin for all users and from all devices. The extension supports multiple authenticators including Google Authenticator, Authy, Duo, and U2F keys. 2FA is enabled by default for all Magento Admin users, and cannot be disabled from the Magento Admin or from the command line. 2FA is not available for storefront customer accounts.
9
9
10
10
Two-Factor Authentication gives you the ability to:
11
11
12
-
- Enable authenticator support for the Admin.
13
12
- Manage and configure authenticator settings globally or per user account.
14
-
- Reset authenticators and manage trusted devices for users.
15
-
16
-
At this time, Two-Factor Authentication can be installed only from the command line.
13
+
- Reset authenticators for users.
17
14
18
15
{:.bs-callout-info}
19
16
**Magento Community Contribution** - Magento thanks [Riccardo Tempesta](https://twitter.com/rictempesta) of [MageSpecialist](https://partners.magento.com/portal/details/partner/index/id/129/) for contributing these features as part of the Magento Community Engineering program.
20
17
18
+
## Magento Admin Workflows
19
+
20
+
Magento has new workflows for Admin users, including:
21
+
22
+
- The ability to configure the 2FA provider globally or individually.
23
+
- Admin users must set their own personal 2FA at first login.
24
+
- Confirmation email is sent at first login to verify identity.
25
+
- The "Trust this device" option has been removed.
26
+
27
+
For more information, see [Two-Factor Authentication](https://docs.magento.com/m2/ee/user_guide/stores/security-two-factor-authentication.html) in the _Magento User Guide_.
28
+
29
+
## Headless Magento
30
+
31
+
The 2FA provider for Magento Headless can be selected with the `config:set` command.
32
+
33
+
## Magento Web API
34
+
35
+
Two-Factor Authentication is implemented for Magento Web APIs with the following changes:
36
+
37
+
-`AdminTokenServiceInterface::createAdminAccessToken()` throws an exception when the Admin user doesn’t have personal 2FA configured, and also indicates that the confirmationh email has been sent.
38
+
-`AdminTokenServiceInterface::createAdminAccessToken()` throws an exception that indicates which provider is configured for the user and suggests a provider-specific login endpoint.
39
+
- 2FA provider-specific endpoints allow each Admin user to configure a personal 2FA.
40
+
- 2FA provider-specific endpoints provide tokens for username, password, and 2FA code.
41
+
42
+
<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="{"highlight":"#808080","nav":true,"resize":true,"toolbar":"zoom layers lightbox","edit":"_blank","xml":"<mxfile host=\"app.diagrams.net\" modified=\"2020-05-13T14:34:26.218Z\" agent=\"5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36\" etag=\"1_9dYxgYtKkJoeiHUXCv\" version=\"13.1.1\" type=\"device\"><diagram id=\"3_r6wyLoFRS8J-phUPnO\" name=\"Page-1\">7Vtbd5s4EP41Oad9SA4gLuYxcUK2e9put9ndNk97sJFtNYC8Mo7t/vodgWQQwsHxYuz2rB9sGEDAN99cNBpfoGGyvmfhfPaBRji+sIxofYFuLyzLMg0ffrhkU0h82ywEU0aiQlQRPJDvWAgNIV2SCC+UEzNK44zMVeGYpikeZ4osZIyu1NMmNFbvOg+nWBM8jMNYl34hUTYTb2EYpfwXTKYzeWdXHklCebIQLGZhRFcVEbq7QENGaVZs0dE3/gKWEYcjADE/r7hSAlVelayHOAagg2IXNsTVylGD1N+V4TSrPlSw44Lr76Hnf178vR58fQqePlI8eUouvWKU5zBeCnA+YbagacivtILrCz6oG8MNbkYMtqZ8C/QyIdMlwzByIIDINhJdNqPJaAkqulnNSIYf5uGYH1kBl0A2yxKOgwmb4taYZXi9853MCj73mCY4Yxs4RVyAPLu4RDDR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R3Zc3SN7vYY3vQ6k1yrS6Jqv13EcY6AsGavKgJdnm68CpXznke9cOXL3dl09eLtRAN2n6NZaSyvKWTruFVydBlilbO+am7jDJ0pyn7etUav1Es++klVqOUhRNhTXlTrThkJO61AFGNpQufq3r/4fGNFUbHklI/bV7KkUZjvOlen65UdNlEzTPEx7MK46kLTvvnS3TzX9/K3ZPyU3nJoxI+kiX0sGx28Z6Nhk2KNGszcZzJORwXZOyYZ6awJC1pXrHUYIq84sx+iVELalEeIj1ShxQLIFc48g/5xfxoWQ6tqRqbeWNNUTZBTsPuHSq32PfJ3+p9aCY3s1LegF7F61YOtJjtbfM+QaAQeZi3j97qKpi6qpCSgm6ZOm0f4bJ9RCt+V7V46Ger8ro3aXIakShR6VIHT82YbRjHw/IcmyVMU6spHz1fGoPpBdG+jI8cjZo7TayoY1yb5WtivpCeyVVOA7r2dCe7PHSZmAahmmbRw463RqC/6O32+q6nThFwQTSu0/Vo40M+H4vqSVQf6ePgedFdMcuxYi9mWa2zbQkZnmdlrvOl0EOukUuR44kHug37Ek+tvF+J7Z0EGt6wzYYJ6UDa5X64hGB+YjrufB3NrYfkx1WK/f7MTSa2l/Fq3UMZ3yOQFfEeIPA1/F8tBPPYUz3drShb5yYTY2BR5rCufubpvZLjC9SyPyTKJl/j+Y1Yz3rc4xm1CW8CcaA+lJRvh/mK5fWp7ap9OPSEHAKOgr5dPAcUxwzu83vz68fWFZj3S58NVEofNoYlP540lXWyWQ7+sEOloLtAxaR+/s6ML66stC0sdWXXwTeEfr22/K2JV+gB0dZ4u8BZ+vLZuD+bq1k+PAUYpe9i+YN2Bcf3oH30FMV7u7NeqmuctUu16mPltrdb2au9cLdqaHGtz96wkHu+VfLYvoXf5hFd39Cw==</diagram></mxfile>"}"></div>
The 2FA extension installs when you install or upgrade to Magento Open Source or Commerce 2.3.X. This extensions installs like a Core Bundled Extension (CBE).
47
+
The 2FA extension installs when you install or upgrade to Magento Open Source or Commerce 2.4.x. The extension installs like a Core Bundled Extension (CBE).
24
48
25
49
## Configure and manage 2FA
26
50
@@ -30,12 +54,11 @@ Administrators have options to:
30
54
31
55
- Review existing authenticators configured per user account
32
56
- Require specific authenticators
33
-
- Reset or remove authenticators to resolve access issues
34
-
- Revoke access for devices to resolve access issues
57
+
- Reset authenticators to resolve access issues
35
58
36
59
## Install authenticator
37
60
38
-
After enabling and configuring 2FA for your Magento instance, Magento Admin users need to install and configure an authenticator. For complete instructions, see [Using Two-Factor Authentication](https://docs.magento.com/m2/ee/user_guide/stores/security-two-factor-authentication-use.html).
61
+
After configuring 2FA for your Magento instance, Magento Admin users must install and configure an authenticator for their personal use. For complete instructions and workflows, see [Using Two-Factor Authentication](https://docs.magento.com/m2/ee/user_guide/stores/security-two-factor-authentication-use.html).
39
62
40
63
### Supported authenticators
41
64
@@ -48,15 +71,7 @@ After enabling and configuring 2FA for your Magento instance, Magento Admin user
48
71
49
72
## Troubleshooting
50
73
51
-
The extension supports command line options for disabling, revoking, and resetting authenticators. Use these commands when you cannot access the Magento Admin UI.
52
-
53
-
### Disable authenticator
54
-
55
-
If you have issues with 2FA, you can disable 2FA globally for the Magento instance.
56
-
57
-
```bash
58
-
bin/magento msp:security:tfa:disable
59
-
```
74
+
The extension supports command line options to revoke and reset authenticators. Use these commands when you cannot access the Magento Admin.
These advanced steps require a full understanding of database management and modifications. We advise caution when making any changes directly to your database.
87
+
These advanced steps require a full understanding of database management and modifications. Exercise caution when making any changes directly to your database.
73
88
74
-
In your database, you can modify the following tables and values to affect and override 2FA.
89
+
In your database, you can modify the following tables and values to affect 2FA.
75
90
76
91
Table: `core_config_data`
77
92
78
-
-`msp/twofactorauth/enabled` - Set to zero to disable 2FA globally.
79
93
-`msp/twofactorauth/force_providers` - Delete this entry to remove forced providers option.
0 commit comments