Skip to content

Quick start

This procedure sets up one identity provider and one email domain. For the instructions of a specified IdP, refer to the identity provider guides.

  • Install the module.
  • Get administrator access to your identity provider.
  • Get access to the DNS of your email domain. You must add a TXT record.
  • Keep a second admin account that does not use the SSO domain. Use it if the SSO configuration has a problem.

1. Create the identity provider in Magento

Section titled “1. Create the identity provider in Magento”
  1. Go to System > Permissions > Visus Single Sign-On > Identity Providers.

  2. Click Add New Provider.

  3. In Code, enter a short code, for example entra. Use lowercase letters, digits, _ and -.

  4. In Name, enter the name of the sign-in button, for example Contoso Entra ID.

  5. Keep Active off.

  6. In Your Password, enter your current admin password.

  7. Click Save and Continue Edit.

The Service Provider fieldset now shows the SP Entity ID and the ACS URL of the provider.

The Service Provider fieldset of a saved identity provider. It shows the SP Entity ID and the ACS URL, each with a Copy button.

  1. In the console of the IdP, create a SAML 2.0 application.

  2. Enter the SP Entity ID of Magento as the entity ID (also called the audience or identifier).

  3. Enter the ACS URL of Magento as the reply URL (also called the ACS URL).

  4. Configure the IdP to send the email address, the first name and the last name of the user.

  5. Optional: configure the IdP to send the groups of the user.

  6. Assign the users or the groups that can sign in to Magento.

  7. Download the SAML metadata XML file of the IdP.

You can also give the IdP the metadata of Magento. Click Download SP Metadata on the provider form.

  1. On the provider form, click Import Metadata.

  2. Select the metadata XML file of the IdP.

  3. Examine the values that the import filled in. The import saves nothing.

  4. In Attribute Mapping > Load Preset, select your IdP if the import did not select it.

  5. Compare the attribute names with the claims that your IdP sends.

  1. If Magento must create the admin users at their first login, turn on Create Admin User On First Login.

  2. In Role For Provisioned Users, select the admin role of new users.

  3. Optional: in Role Mapping, add rules that give a role for each IdP group. Refer to Attribute and role mapping.

  1. In Your Password, enter your current admin password.

  2. Click Save and Continue Edit.

  3. Click Test Connection. A popup window opens the IdP.

  4. Sign in at the IdP with a test user.

  5. Examine the result. It tells if a login would succeed, and which admin user and role it would use.

  6. If the test fails, correct the settings. Then do steps 1 to 5 again.

  7. Turn on Active.

  8. In Your Password, enter your current admin password.

  9. Click Save and Continue Edit.

The test uses the saved settings, also for an inactive provider. It logs nobody in, and changes no admin user. For more information, refer to Test the provider.

The Identity Provider Test result page after a successful test. It shows the NameID, the attributes, the admin user match and the role.

  1. Go to System > Permissions > Visus Single Sign-On > Domains.

  2. Click Add New Domain.

  3. In Email Domain, enter the domain, for example example.com.

  4. In Provider, select the identity provider.

  5. In Your Password, enter your current admin password.

  6. Click Save and Continue Edit.

  7. Copy the Host and the Value from the Ownership Verification fieldset.

  8. At your DNS host, add a TXT record with this host and value.

  9. Wait for the DNS change to spread. Then click Verify Now.

SSO uses the domain only while it is verified. If you do not click Verify Now, the module checks the TXT record every 15 minutes. For more information, refer to Domains.

  1. Open a private browser window.

  2. Open the admin login page.

  3. Enter the email address of a user of the domain. The password field becomes disabled.

  4. Click Single Sign-On.

  5. Sign in at the IdP.

Magento logs the user in. If the login fails, go to Logs > Login Log, and examine the failure reason. Refer to Troubleshooting.