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
### Set a base32 encoded `secret` for `Google Authenticator` to generate OTP for the default admin user that you set for `MAGENTO_ADMIN_USERNAME` in .env.
Save the same base32 encoded `secret` in MFTF Credential Storages, e.g. `.credentials` file, `HashiCorp Vault` or `AWS Secrets Manager`.
28
+
More details [here](../credentials.md).
29
+
30
+
The path of the `secret` should be:
31
+
32
+
```conf
33
+
magento/tfa/OTP_SHARED_SECRET
34
+
```
35
+
36
+
## GetOTP {#getOTP}
37
+
38
+
One-time password (OTP) is required when an admin user logs in to Magento Admin page.
39
+
Use action `getOTP`[Reference](../test/actions.md#getotp) to generate the code and use it for the `Authenticator code` text field in 2FA - Google Auth page.
40
+
41
+
Note:
42
+
You will need to set the `secret` for any non default admin users first before using `getOTP`. For example
Copy file name to clipboardExpand all lines: docs/getting-started.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,9 @@ Clean the cache after changing the configuration values:
109
109
bin/magento cache:clean config full_page
110
110
```
111
111
112
+
### Testing with Magento Two-Factor Authentication (2FA) extension {#2fa}
113
+
If Magento under test has [Magento Two-Factor Authentication (2FA) extension][] installed and enabled, additional configures are needed to run MFTF tests. Learn more in [Configure MFTF for Magento with Two-Factor Authentication (2FA)](../configure-2fa.md).
The MFTF does not support executing CLI commands if your web server points to `<MAGE_ROOT_DIR>/pub` directory as recommended in the [Installation Guide][Installation Guide docroot]. For the MFTF to execute the CLI commands, the web server must point to the Magento root directory.
0 commit comments