Articles in this section

Signing in with Azure AD (Microsoft Entra ID)

Published:
Updated:

This article explains how single sign-on with Azure Active Directory (Microsoft Entra ID) works in MobilityManager, both for people signing in and for the administrator who configures it.

Signing in with Microsoft

  1. Open the sign-in page and select your company (tenant).
  2. Choose the single sign-on button. When the provider is Azure AD, its default label is Login with Microsoft (your administrator may have set a custom label).
  3. You are redirected to Microsoft to sign in with your organizational account and complete any multi-factor prompts.
  4. Microsoft returns you to MobilityManager, which verifies the response and starts your session.
Note: If this is your first time signing in with Azure AD, an account is created for you automatically with the Driver role. See "How single sign-on users are provisioned."

What your administrator configures

SSO is set up per company by a SystemAdmin. For Azure AD, register an application in your Microsoft Entra tenant and enter these values in MobilityManager:

SettingValue for Azure AD
ProviderAzureAD
AuthorityYour Entra authority URL, for example https://login.microsoftonline.com/<directory-id>/v2.0
Client IDThe application (client) ID from the app registration
Client secretA client secret created for the app registration (stored securely, never displayed back)
Redirect URIThe MobilityManager callback URL, also registered as a redirect URI in Azure
ScopesDefaults to openid profile email
Button textOptional; defaults to "Login with Microsoft"

How the Azure AD flow works

When a user starts SSO, MobilityManager builds an authorization request to the Azure endpoint at {authority}/oauth2/v2.0/authorize, requesting an authorization code. For Azure AD, the request also includes a nonce and a state value for added protection. After the user authenticates, Microsoft returns an identity token that MobilityManager validates against Azure's published signing keys, issuer, and audience before creating the session.

Tip: Make sure the redirect URI registered in Azure exactly matches the redirect URI configured in MobilityManager, including scheme and path. A mismatch is the most common cause of a failed Azure AD sign-in.

Troubleshooting

SymptomLikely cause
Redirect fails at MicrosoftRedirect URI not registered or misspelled in the app registration.
"Identity provider token validation failed"Wrong authority, wrong client ID as audience, or a clock skew beyond the allowed tolerance.
"OIDC configuration is incomplete for this tenant"Authority or client ID is missing in the company's SSO settings.
An email account already existsA local password account uses the same email; an administrator must link it explicitly.

Related

  • Single sign-on: an overview
  • Signing in with Keycloak
  • Signing in with ADFS or a generic OIDC provider
  • How single sign-on users are provisioned
AH
Written by Alexander Hagemann
Updated:
Access denied
Access denied