Overview
The Visus Admin SSO Login module (Visus_AdminSsoLogin) adds SAML 2.0 single sign-on (SSO) to the Magento admin. An identity provider (IdP), such as Microsoft Entra ID or Okta, authenticates the admin users. Magento is the service provider (SP).
Key concepts
Section titled “Key concepts”| Term | Meaning |
|---|---|
| Identity provider | A SAML 2.0 IdP that you connect to Magento. Each identity provider has a unique code, its own SP entity ID and its own ACS URL. |
| Domain | An email domain, such as example.com. Admin users with an email address of a verified domain must sign in through the identity provider of the domain. |
| Service provider key | An RSA key pair and a certificate. Magento uses the active keys to sign authentication requests and to decrypt encrypted assertions. |
| Identity | The link between a SAML NameID and an admin user. The first SSO login of a user makes the link. |
| Managed user | An admin user that SSO manages. The user has no password of their own, and the IdP controls some of the user fields. |
How an SSO login works
Section titled “How an SSO login works”- The admin user enters their email address on the admin login page.
- The login form sends only the domain of the email address to Magento. Magento tells the form if the domain uses SSO.
- If the domain uses SSO, the form disables the password field and hides the forgotten password link. The label of the sign-in button changes to Single Sign-On. The button then starts the SSO login.
- Magento sends the browser to the IdP with a SAML
AuthnRequest(HTTP-Redirect binding). - The user authenticates at the IdP.
- The IdP posts a SAML response to the ACS URL of Magento (HTTP-POST binding).
- Magento validates the response. Then it finds, links or creates the admin user, and logs the user in.

The login form never sends the username to the server. The answer is the same for all users of a domain. Thus the form does not tell if an account exists.
What the module checks
Section titled “What the module checks”Magento accepts a SAML response only when all of these conditions are true:
- The response answers an
AuthnRequestthat the same browser started. A request expires after 10 minutes. - The response or the assertion has a valid signature from a certificate of the identity provider.
- The response contains exactly one assertion. If the assertion is encrypted, an active service provider key decrypts it. The assertion has a bearer confirmation and a NameID.
- The issuer, the audience, the destination and the validity period are correct. The module accepts a clock skew of 3 minutes.
- The module did not accept the same assertion before.
- The authentication context satisfies the requested authentication context, if you set one.
Requirements
Section titled “Requirements”| Requirement | Version |
|---|---|
| PHP | 8.4 or 8.5 |
| Magento Open Source or Adobe Commerce | 2.4.8 or later |
| PHP extensions | ext-dom, ext-libxml, ext-openssl |
| Magento modules | Magento_TwoFactorAuth and the other modules in the composer.json file of the module |
| Magento cron | Must run. The module uses cron jobs for domain verification, log cleanup and expiry notices. |
The admin must use HTTPS. The IdP posts its responses to an HTTPS ACS URL, and the IdP single sign-on URL must be an HTTPS URL.
Where to find the module in the admin
Section titled “Where to find the module in the admin”The module adds the System > Permissions > Visus Single Sign-On menu item. The pages of the module have two groups:
- Setup: Identity Providers, Domains, Service Provider Keys and API Tokens.
- Logs: Login Log, Provider Changes, Domain Changes and Service Provider Key Changes.
The Configuration > Settings link opens Stores > Configuration > Advanced > Admin > Visus Single Sign-On.
