Skip to content
Go to platform

Last updated:

Microsoft SSO

With Microsoft SSO, users sign in to the platform and apps with their Microsoft account. This page describes how to create the app registration in Azure, configure the platform, and how users are matched.

  1. Sign in to the Azure portal and go to App registrations.
  2. Select New registration.
  3. Enter a name. This name is shown to users when they sign in to the application.
  4. Add a redirect URI in the format below. During creation only one redirect URI can be added; add the others after the registration is created.
    • For version 5.0 and up:
      • https://{yourURL}/Auth/signin-microsoft
      • https://{yourURL}/auth/signin-microsoft
    • For older versions:
      • https://{yourURL}/AppsService/signin-microsoft
      • https://{yourURL}/Platform/signin-microsoft
      • https://{yourURL}/Apps/signin-microsoft
      • https://{yourURL}/appsservice/signin-microsoft
      • https://{yourURL}/platform/signin-microsoft
      • https://{yourURL}/apps/signin-microsoft
  5. Select Register to create the app registration.

The email and xms_edov claims only appear in the id_token when the app registration is configured to include them. Without them, every user gets the link screen on first sign-in.

  1. Go to Token configuration and select Add optional claim.
  2. Select the token type ID.
  3. Select the claims email and xms_edov.
  4. Save the changes.
  1. Sign in to the Any2Info platform and go to Platform → Settings.
  2. Open the group Authorization and select Azure SSO.
  3. In the Azure portal, copy the Application (client) ID from the Overview page of the app registration.
  4. Paste it in the ClientId setting.
  1. In the Azure portal, go to Certificates & secrets.
  2. On the Client secrets tab, select New client secret.
  3. Copy the value of the new secret. It cannot be viewed again after you leave the page.
  4. In the Any2Info platform, go to Platform → Settings → Authorization → Azure SSO.
  5. Paste the value in the ClientSecret setting.
  6. Enable the EnableAzureSSO setting.
  7. Save the settings.

For each user who should be able to sign in with Microsoft, make sure the SSO username (the email address) is filled in. See Users.

On the first sign-in, the platform links the Microsoft account to an Any2Info user based on the verified email address from the id_token.

  • The email address is only trusted when the id_token contains both the email claim and the xms_edov claim set to true or 1. xms_edov means Microsoft verified the email domain. See Add the optional token claims.
  • The platform looks for a user in this order:
    1. A user whose SSO username equals the email address.
    2. If none is found, a user whose email field equals the email address.
  • The user gets the link screen instead of being signed in automatically when:
    • the id_token has no verified email (the claims are not configured, or the account has no mail attribute, is a guest, or uses an unverified domain);
    • no user matches;
    • more than one user has the same email address.
  • After the first sign-in, the link is stored using the issuer, subject and tenant of the Microsoft account. These never change, so later changes to the user’s email address or UPN do not break the link.

The UPN (preferred_username) is deliberately not used for matching. A tenant admin can change it, it can be reassigned to another person, and it has no verification claim like xms_edov.

Section titled “Troubleshooting: user sees the link screen”

Work through these checks in order.

  1. Check the id_token claims. Decode the id_token of the sign-in (for example with the browser dev tools) and check that email and xms_edov are present and xms_edov is true.
    • Both missing: the optional claims are not configured on the app registration. See Add the optional token claims.
    • email missing: the user in Entra has no mail attribute. Having only a UPN is not enough; fill in the user’s email address in Entra.
    • xms_edov missing or false: the email domain is not verified in the tenant, or the account is a guest account.
  2. Check the user in Any2Info. If both claims are present and true, the cause is on the Any2Info side.
    • Check that the SSO username or the email field of the user equals the email address from the id_token.
    • Check that the email address is not used by more than one user. Multiple matches also result in the link screen.