Two-factor authentication
Magento requires two-factor authentication (2FA) for the admin. After an SSO login, the 2FA of Magento still applies. The exception is a sign-in at the IdP with a phishing-resistant method, such as a passkey, a security key or a smart card. Then the SSO login replaces the 2FA of Magento.
A password login of the same user, and every other SSO login, still needs the 2FA of Magento.
How the module decides
Section titled “How the module decides”The module examines the assertion in this order:
- Authentication method references (AMR). If an AMR attribute names a phishing-resistant method, the sign-in is phishing-resistant.
- Authentication context class. If not, each authentication statement must have the
SmartcardPKIcontext class.
The test result of a provider shows the authentication methods, and tells if a login would skip the 2FA of Magento. Refer to Test the provider.
AMR attributes
Section titled “AMR attributes”The module reads the AMR only from attributes with a known name:
- The authentication method claims of Microsoft Entra ID and AD FS.
amr, which Okta and Auth0 send.
You cannot select another attribute in the admin. Thus a group, a custom attribute or an attribute that the user can edit at the IdP never skips the 2FA. A developer can add attribute names through di.xml. Refer to Extending the module.
Phishing-resistant methods
Section titled “Phishing-resistant methods”| AMR value | Method |
|---|---|
fido |
FIDO2 and passkeys of Entra ID |
hwk |
A hardware-protected key, such as Windows Hello for Business |
sc |
A smart card |
phr |
Okta FastPass |
pop |
WebAuthn of Okta |
passkey, webauthn-roaming, webauthn-platform |
The WebAuthn methods of Auth0 |
A certificate method (x509 or tlsclient) is phishing-resistant only together with a multifactor value (mfa or multipleauthn). Alone, a certificate can be the certificate of a device.
The module also accepts a URI of a Microsoft authentication method namespace. The last segment of the URI is the value. The module ignores URIs of other namespaces.
Support by identity provider
Section titled “Support by identity provider”| IdP | Can skip the 2FA of Magento | Configuration |
|---|---|---|
| Microsoft Entra ID | Yes | Add the granular amr optional claim. Refer to Microsoft Entra ID. |
| AD FS | Yes | Pass the authentication method claims through. Refer to AD FS. |
| Okta | Yes | Add the amr attribute statement. Refer to Okta. |
| Auth0 | Yes | Add a post-login Action. Refer to Auth0. |
| Keycloak | Only with step-up to SmartcardPKI |
Refer to Keycloak. |
| Google Workspace | No | Google does not send the method. |
| AWS IAM Identity Center | No | IAM Identity Center does not send the method. |
| PingOne | No | PingOne does not send the method. |