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.
Create an app registration on Azure
Section titled “Create an app registration on Azure”- Sign in to the Azure portal and go to App registrations.
- Select New registration.
- Enter a name. This name is shown to users when they sign in to the application.
- 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-microsofthttps://{yourURL}/auth/signin-microsoft
- For older versions:
https://{yourURL}/AppsService/signin-microsofthttps://{yourURL}/Platform/signin-microsofthttps://{yourURL}/Apps/signin-microsofthttps://{yourURL}/appsservice/signin-microsofthttps://{yourURL}/platform/signin-microsofthttps://{yourURL}/apps/signin-microsoft
- For version 5.0 and up:
- Select Register to create the app registration.
Add the optional token claims
Section titled “Add the optional token claims”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.
- Go to Token configuration and select Add optional claim.
- Select the token type ID.
- Select the claims
emailandxms_edov. - Save the changes.
Copy the client ID
Section titled “Copy the client ID”- Sign in to the Any2Info platform and go to Platform → Settings.
- Open the group Authorization and select Azure SSO.
- In the Azure portal, copy the Application (client) ID from the Overview page of the app registration.
- Paste it in the ClientId setting.
Create and copy a client secret
Section titled “Create and copy a client secret”- In the Azure portal, go to Certificates & secrets.
- On the Client secrets tab, select New client secret.
- Copy the value of the new secret. It cannot be viewed again after you leave the page.
- In the Any2Info platform, go to Platform → Settings → Authorization → Azure SSO.
- Paste the value in the ClientSecret setting.
- Enable the EnableAzureSSO setting.
- Save the settings.
Connect users
Section titled “Connect users”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.
How users are matched
Section titled “How users are matched”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
emailclaim and thexms_edovclaim set totrueor1.xms_edovmeans Microsoft verified the email domain. See Add the optional token claims. - The platform looks for a user in this order:
- A user whose SSO username equals the email address.
- 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.
Troubleshooting: user sees the link screen
Section titled “Troubleshooting: user sees the link screen”Work through these checks in order.
- Check the id_token claims. Decode the id_token of the sign-in (for example with the browser dev tools) and check that
emailandxms_edovare present andxms_edovistrue.- Both missing: the optional claims are not configured on the app registration. See Add the optional token claims.
emailmissing: 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_edovmissing orfalse: the email domain is not verified in the tenant, or the account is a guest account.
- 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.