Sign in with a work account

Once an organization has connected its Microsoft 365, the people Empeiro synced from it can sign in with their Microsoft 365 account instead of an Empeiro password: on the sign-in page, Use your work account (Microsoft 365), then their work email. They land in their organization's help desk, as a requester or an agent, as their administrator decided.

The sign-in page with Use your work account: the Work email box, Continue, and Back to sign in

Use your work account, then the work email.

How it works

Empeiro routes the email through a domain verified by Microsoft for exactly one connected tenant and sends the browser to that organization's own Microsoft 365, with that organization's own app registration. The token that comes back is checked against the tenant's signing keys, the organization's registration (its Application (client) ID) and the sign-in's own nonce; the person is the directory entry with that Microsoft account's object ID, never whoever an email address names. Microsoft multifactor authentication and Conditional Access follow your tenant policies. The callback is bound to the browser that began sign-in; complete the flow there rather than copying its callback URL into another browser.

Who can sign in follows Who can sign in beside the sync: while it is "only these people", anyone not listed is told so in plain words and nothing is made for them. See Connecting Microsoft 365.

One step in the app registration

Open the organization's Empeiro app registration in the Entra admin center (the one from Connecting Microsoft 365):

  1. Open Authentication and check the existing Web entries for https://empeiro.app/api/auth/microsoft/callback (Empeiro shows it with a Copy button beside the sync settings). If you added it during registration, this step is already complete: do not add it again. Only if it is missing, select Add Redirect URI (older screen: Add a platform), choose Web, enter it once and select Configure, then Save if prompted. The expected result is one matching callback under Web. Without a registered callback Microsoft refuses the sign-in with AADSTS500113: No reply address is registered. See Microsoft's redirect URI instructions.
  2. Sign-in requests the openid, profile and email scopes and uses the client secret already saved in Empeiro. Depending on your tenant's consent policies, Microsoft may request consent or administrator approval. If it does, review the requested sign-in permissions and have your tenant administrator approve them through your organization's normal process. Directory application permissions are separate from this interactive sign-in.

Sign in with a work account beside the sync: the redirect URI with Copy, its light saying whether the last sign-in worked, and Link your Microsoft account

The redirect URI and its own light: green once someone signed in this way.

First employee sign-in

After the operator clears the real tenant import, the organization administrator completes sync, checks the employee is included, and saves their sign-in permission. On the sign-in page choose Use your work account (Microsoft 365), enter your work email, then select Continue. Complete Microsoft authentication in that browser. Verify the correct organization and requester workspace before submitting a ticket. Personal Microsoft accounts, another tenant, excluded employees and unlisted pilot employees do not gain access simply by passing Microsoft authentication.

For the first rollout, follow the pilot checks in Connecting Microsoft 365 before choosing Everyone in the directory. The current firm import remains on hold pending security-release clearance.

Your own account and your work account

An administrator, and anyone invited by name, has an Empeiro account with a password and passkeys. When the organization connects Microsoft 365, the same person is also in the directory. Link your Microsoft account makes the two one person: on Your account (or beside the sync, for administrators), sign in with Microsoft once. From then on either way in opens the same account, with the same tickets. Linking is also the quickest way to check the redirect URI works: the light beside it turns green.

Your account: the Your Microsoft account section with Link your Microsoft account

Link your Microsoft account, on Your account.

Messages

Message Meaning What to do
No organization on Empeiro uses that email domain. No active connection has established that Microsoft-verified domain for routing. Ask the administrator to grant Organization.Read.All and run Test or Sync now for the intended tenant; use an existing Empeiro password while routing is unavailable.
… is trying Empeiro with a few people first, and you're not on the list yet. The organization is in pilot mode and this person isn't listed. An administrator ticks Can sign in beside them, or chooses Everyone in the directory.
You signed in, but you're not in the directory Empeiro syncs yet. The account exists in Microsoft 365 but wasn't synced (new, or left out). Wait for the hourly sync or press Sync now; check it isn't under accounts left out.
Microsoft's sign-in token couldn't be verified. The token isn't for this organization's registration, or the signing keys couldn't be fetched. Check the redirect URI was added to the same registration whose client ID is saved.
Microsoft's sign-in token isn't for this organization. The token belongs to another sign-in or another tenant. Start again from the sign-in page.
Microsoft refused the sign-in: AADSTS65001… Nobody consented to the sign-in permissions. Click Grant admin consent on the registration's API permissions, or accept the one-time prompt.
That sign-in took too long or was already used. More than 10 minutes passed, or the browser went back. Start again from the sign-in page.
That Microsoft account is already linked to … in … Another Empeiro account in the organization linked it. One Microsoft account, one Empeiro account; an administrator sorts out which.
AADSTS500113: No reply address is registered (on Microsoft's page) The redirect URI wasn't added. Add it as in step 1 above.

Microsoft reference

The Microsoft-side setup uses the server application Web redirect platform described in Add a redirect URI. Use the exact URI displayed by your installation; directory application consent and interactive sign-in are separate permissions.

Security checks and supported identities

Empeiro redeems the code on its server using the same registration's saved secret and an S256 PKCE verifier. It validates the ID token's RS256 signature, tenant-specific issuer, client-ID audience, expiration/issued time, object ID, tenant ID and nonce. An attempt expires after ten minutes, belongs to its starting browser, and can be redeemed once. The token validator permits 120 seconds of clock skew; operators must still keep the server's clock synchronized. Changing the saved connection invalidates attempts begun under its former configuration.

The synced Microsoft object ID identifies the person within this organization. An email claim cannot create a different identity or move someone to another customer. Existing eligible directory people can sign in without a separately created Empeiro password; unsynchronized people are not created just because Microsoft returned a token. The sign-in list still applies.

Guests are excluded by the current directory policy. Being a guest in a customer's tenant does not grant Empeiro access, even though Entra single-tenant apps can support guests generally. For a person with identities in multiple tenants, Empeiro requests the connected resource tenant and validates that exact tenant. Use the correct member identity; an unrelated tenant or personal Microsoft account is refused. One Microsoft tenant currently connects to one Empeiro organization.

Microsoft MFA and Conditional Access can be applied by your tenant during Microsoft authentication. Afterward Empeiro uses its own secure session, checking its local organization/access policy on requests. It does not implement continuous Microsoft token refresh or continuous-access evaluation. Account disable/removal is reflected by a successful directory sync; keep the hourly sync healthy and revoke independent native access separately when offboarding a person.

Verify sign-in without risking your administrator account

  1. Keep the administrator's password/passkey session open in its original browser.
  2. In Microsoft 365, confirm the employee appears as included and is allowed by the sign-in list.
  3. Open a private browser window, choose Use your work account, and enter the employee's work email. Finish Microsoft authentication there; do not copy the callback to another browser.
  4. Verify the expected organization and requester/agent role after returning. Create and follow a test ticket only when the operator has authorized that live acceptance step.
  5. Repeat with an eligible but unlisted member during pilot mode. Expect the pilot refusal and no active Empeiro session. Do not broaden the sign-in scope to make a failed test pass.
  6. To link an invited administrator account, return to its original session and use Your account → Link your Microsoft account. Its Microsoft identity must already be eligible and synchronized.

Additional actual failures include Your Microsoft identity must be synchronized and allowed by this organization's sign-in policy before linking. Check directory eligibility before retrying; linking cannot bypass synchronization. Microsoft refused the code exchange… means the server could not redeem the authorization code: check the exact Web callback, current secret and consent, then begin a new attempt. Browser Back does not make a used code valid again.

Protocol references: Authorization code and PKCE, ID tokens, ID-token claims, and redirect restrictions.

← Connecting Microsoft 365