Skip to content

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).

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.
  1. The admin user enters their email address on the admin login page.
  2. The login form sends only the domain of the email address to Magento. Magento tells the form if the domain uses SSO.
  3. 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.
  4. Magento sends the browser to the IdP with a SAML AuthnRequest (HTTP-Redirect binding).
  5. The user authenticates at the IdP.
  6. The IdP posts a SAML response to the ACS URL of Magento (HTTP-POST binding).
  7. Magento validates the response. Then it finds, links or creates the admin user, and logs the user in.

The Magento admin login page after the user entered an email address of an SSO domain. The password field is disabled, the forgotten password link is hidden and the button shows Single Sign-On.

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.

Magento accepts a SAML response only when all of these conditions are true:

  • The response answers an AuthnRequest that 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.
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.

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.

The Visus Single Sign-On navigation in the admin, with the Setup, Logs and Configuration groups.