Scute signs in to a client's Microsoft tenant through an Entra app registration. With the tenant connected, a verification can send a Microsoft Authenticator push, Scute can read the tenant's users, and the helpdesk actions can act in the tenant.
Which app a workspace uses#
Workspaces form a tree: Master, then MSP, then client. Each workspace resolves its Entra app by walking up that tree.
| Source | Set with | Used by |
|---|---|---|
| The workspace's own app | Own app | That workspace and the workspaces below it |
| The Master's app | Master app | Every MSP and client under the Master |
| An MSP's partner connection | GDAP | Clients linked to a tenant the MSP reaches through GDAP |
| Scute's app | Nothing to set | Workspaces with no app above them |
The tenant itself is connected on the client workspace: by admin consent (Connection), by the first user synced with an Entra tid, or through a GDAP link.
Credentials#
The calls on these pages take one of two pairs. Both use a key in Authorization and a second credential in X-Authorization.
| Label | Authorization | X-Authorization | Pages |
|---|---|---|---|
| Workspace key + M2M token | Workspace key (scworks_...) of the Master or MSP in the path | M2M token (scm2m_...) of an app in that workspace, or a member JWT | Master app, GDAP, approve/deny setup |
| API key + M2M token | App key or workspace key | M2M token of an app in the workspace in the path | Connection, own app, helpdesk settings, approve/deny status |
On the second pair the M2M token's app has to sit in the workspace named in the path. An M2M token from a Master app is refused on a client workspace with 403 workspace_access_denied. See Authentication.
An M2M token needs its read scope for GET calls and its write scope for every other call. Without it the call returns 403 insufficient_scope.
Calls made with a member JWT instead of an M2M token check the person's role: changes take an owner or admin of the workspace and return 403 workspace_admin_required otherwise. A key and M2M token carry no role and pass on the key alone.
App registration#
Register the app in the Azure portal under Microsoft Entra ID, App registrations. Choose multitenant when the clients live in separate tenants. Add these Web redirect URIs:
| Redirect URI | Needed for |
|---|---|
| https://api.scute.io/v1/auth/entra/auth-oidc | Authenticator push. Always required. |
| https://api.scute.io/v1/auth/entra/admin-consent-callback | Consent links Scute creates, including Connect a tenant |
| https://api.scute.io/v1/auth/entra/gdap-callback | GDAP only |
The list for the deployment is in redirect_uris of Get the Master app. Microsoft checks the redirect URI before it shows a sign-in, and a missing one fails with AADSTS50011.
Delegated permissions for Authenticator push: openid, profile, email, offline_access, User.Read. Directory sync also needs the application permissions User.Read.All and UserAuthenticationMethod.Read.All, consented in each client tenant.
The app proves itself to Microsoft with a federated credential (Scute stores no secret) or a client secret. See Master app.
Authenticator push#
A Microsoft Authenticator push is a verification with method set to entra_push. Create it with Create a workspace challenge or on an app with Challenges.
- The user record needs an Entra identity: upn (who receives the push) and oid. Send them in the challenge's user.entra block, or sync users first with directory sync or bulk user sync. The first user.entra.tid sent for a client connects the client to that tenant.
- Scute signs the user in through the resolved Entra app, and Microsoft sends the number-match prompt to the phone. entra_number is null at first.
- Read the two-digit entra_number from the challenge, or from the challenge.entra_push.number_ready webhook, and show it to the user.
- The challenge ends as verified, denied, expired or failed. The webhooks challenge.entra_push.completed, challenge.entra_push.denied, challenge.entra_push.expired and challenge.entra_push.failed report it. See Webhooks.
Send mode: "approve" with entra_push for an Approve / Deny prompt with no number. That mode needs a secret in each client tenant: see Approve/deny push.
Authenticator enrollment#
A push reaches a user only after they have added Microsoft Authenticator for their work account. The user does this once:
- Install Microsoft Authenticator from the App Store or Google Play.
- On a computer, open aka.ms/mfasetup and sign in with the work account.
- Choose Add sign-in method, then Authenticator app, and scan the QR code with the app (+, Work or school account, Scan a QR code).
- Approve the test notification.
When the last directory sync recorded that a user has no Authenticator, creating a push for them returns 400 invalid_request ("User has not registered Microsoft Authenticator") and no challenge is created. Sync again after the user enrolls. A push that cannot be delivered (no Authenticator, phone offline, notifications off) ends as failed.