Skip to content

Set up single sign-on with Microsoft Entra ID (Azure)

Available on Gold

These steps let your people sign in to Acadenix with their Microsoft work account. You work in two places: Acadenix gives Microsoft two addresses, and Microsoft gives Acadenix its metadata address.

Before you start

  • Your organization needs its own Gold licence.
  • In Microsoft Entra you need the Global Administrator or Cloud Application Administrator role in the tenant your people sign in with.
  • People sign in to the Acadenix account that has the same email address. Someone without one gets a learner account the first time they sign in, if their address is at your organization’s Email registration domains. That’s Allow learner JIT provisioning, on unless you switch it off.

In Acadenix: create the connection

  1. Choose Settings, then the Authentication tab.

  2. Under Identity provider connections, choose Add identity provider. Enter a Connection name, such as “Microsoft”. People see it on the sign-in button. Choose Create SAML connection.

  3. Open the connection and keep its Entity ID and ACS URL at hand.

    Settings → Authentication, the Microsoft connection under Identity provider connections, with its Entity ID and ACS URL

Replacing an earlier Microsoft tenant? Open the existing connection and choose Create configuration update instead. Its Entity ID and ACS URL stay the same, and the old setup keeps working until you activate the new one.

In Microsoft Entra: create the application

Start from Enterprise applications, not App registrations. An app created under App registrations is set up for a different sign-in protocol, and Microsoft doesn’t offer SAML single sign-on for it. If you created one by mistake, delete it so nobody is assigned to the wrong app.

  1. At entra.microsoft.com or portal.azure.com, search for Enterprise applications at the top and open it.

  2. Choose New application, then Create your own application. Name it (for example “Acadenix”), choose Integrate any other application you don’t find in the gallery (Non-gallery), and choose Create.

    Microsoft Entra admin center, Enterprise applications → New application → Create your own application, with the name Acadenix and Integrate any other application you don't find in the gallery (Non-gallery) chosen

  3. In the new application, choose Single sign-on, then SAML.

  4. In Basic SAML Configuration, choose Edit:

    • Identifier (Entity ID): the Entity ID from Acadenix.
    • Reply URL (Assertion Consumer Service URL): the ACS URL from Acadenix.
    • Leave Sign on URL, Relay State and Logout Url empty. Choose Save.

    Microsoft Entra admin center, the Acadenix application's Basic SAML Configuration panel, with Identifier (Entity ID) and Reply URL (Assertion Consumer Service URL) filled in from Acadenix

  5. Leave Attributes & Claims as they are. Microsoft already sends the email address, first and last name, and each person’s object ID. If some of your people have no mailbox, edit the emailaddress claim and change its source attribute from user.mail to user.userprincipalname.

  6. Under SAML Certificates, leave the signing as it is and don’t switch on token encryption. Copy the App Federation Metadata Url.

    Microsoft Entra admin center, the application's SAML-based Sign-on page, the SAML Certificates section with the App Federation Metadata Url and its copy button

  7. Choose Users and groups, then Add user/group, and assign the people or groups who will sign in to Acadenix, yourself included. Microsoft refuses anyone who isn’t assigned.

    Microsoft Entra admin center, the application's Users and groups page, with the Add user/group button

In Acadenix: finish and switch on

  1. Open the connection and choose Configure SAML (or your configuration update):

    • Configuration method: choose Fetch IdP metadata URL. The form opens on Manual configuration, whose three fields you don’t need when you fetch.

    • Public HTTPS metadata URL: the App Federation Metadata Url.

    • Under Attribute mapping, replace the values that are filled in:

      Field Value
      Stable subject http://schemas.microsoft.com/identity/claims/objectidentifier
      Verified email claim http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress
      First name claim http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname
      Last name claim http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname
    • Leave Accept encrypted assertions unticked. Choose Save draft.

    Settings → Authentication, Configure SAML with Configuration method set to Fetch IdP metadata URL, the Public HTTPS metadata URL filled in, the Microsoft claim names under Attribute mapping, and Save draft

  2. Choose Test configuration and sign in at Microsoft with an assigned account. When the test passes, choose Activate configuration.

  3. Under Sign-in methods, switch the connection on. If it’s your only SAML connection, your sign-in page now takes people straight to Microsoft. Emailed codes and Google, LinkedIn or Microsoft, where they’re on, are the fallback: someone Microsoft turns away, or who goes back, sees the sign-in page with every choice. Select the connection under Sign-in methods to show it as a button instead (Display Sign On with SAML button on login screen), to switch off Allow learner JIT provisioning, or to limit the email domains it accepts.

  4. Give your people the Sign-in address for your people shown on the connection. In Microsoft, assign them to the application under Users and groups, or set Assignment required? to No in its Properties; otherwise Microsoft turns them away.

The first time someone signs in with Microsoft, Acadenix emails a code to their account’s address to confirm the link. This happens once per person. People can also start from the application’s tile in Microsoft’s My Apps.

If the fetch is refused

Use either of these instead. Both come from the application’s SAML-based Sign-on page in Microsoft Entra:

  • Paste IdP metadata: under SAML Certificates, download Federation Metadata XML, open it in a text editor, and paste all of it.
  • Manual configuration:
    • IdP entity ID: Microsoft Entra Identifier, under Set up followed by your application’s name. It looks like https://sts.windows.net/<tenant-id>/.
    • IdP SSO URL: Login URL, under the same heading. It looks like https://login.microsoftonline.com/<tenant-id>/saml2.
    • IdP signing certificate(s): under SAML Certificates, download Certificate (Base64), open it in a text editor, and paste all of it, including the BEGIN CERTIFICATE and END CERTIFICATE lines.

If the test fails

What you see What to change
Configure the IdP NameID format as Persistent Stable subject is still NameID. Enter the objectidentifier value from step 11.
Verify the IdP sends the configured email claim The email mapping doesn’t match. The result lists the claim names Microsoft sent; use the email one. If there is none, the person has no mailbox (see step 8).
Microsoft error AADSTS50105 The person isn’t assigned to the application (step 10).
Microsoft error AADSTS700016 or AADSTS50011 The Identifier or Reply URL in Microsoft doesn’t exactly match the Entity ID or ACS URL in Acadenix (step 7).
Save draft says Please fill out this field Configuration method is still Manual configuration. Choose Fetch IdP metadata URL (step 11).

If this didn’t help

Ask Nix to log a support ticket, or open Support under Need help?.