Microsoft Entra ID
Authentication

Authentication with Microsoft Entra ID Auth SDK (sidecar)

In brief

The documentation now consistently uses “Microsoft Entra ID Auth SDK (sidecar)” and expands “SPA” to “single-page application.” The described authentication flows and responsibilities are otherwise unchanged in the supplied diff.

What Entra admins need to know

Improves clarity and searchability for administrators and architects; no administrative action is indicated.

This editorial summary was generated by AI from the documentation changes. Verify important details in the full Microsoft Learn article.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Authentication with Microsoft Entra ID Auth SDK (sidecar)

The Microsoft Entra ID Auth SDK (sidecar) handles authentication and token operations for your AI agent. It runs as a second container next to your agent that handles client-credentials exchange, on-behalf-of flows, and token lifecycle management. This article explains the Microsoft Entra ID Auth SDK (sidecar) design pattern, how it works, and the identity objects involved.

Why use the Microsoft Entra ID Auth SDK auth sidecar?(sidecar)?

AI agents need credentials to call downstream APIs, but the common approaches to agent authentication fall short:

Microsoft Entra Agent ID gives each agent its own identity. The sidecar pattern makes that identity easy to use by keeping all credential handling outside your agent code.

How the Microsoft Entra ID Auth SDK auth sidecar(sidecar) works

The Microsoft Entra ID Auth SDK (sidecar) runs as a container that exposes HTTP endpoints on the pod-local network. It handles the following responsibilities:

  • Exchanges client credentials with login.microsoftonline.com.
  • Acquires tokens through client credentials or federated identity credentials (FIC) for the agent identity in autonomous flows.

The following table summarizes the flow of auth actions between your agent and the sidecar:

Agent (your code) Sidecar (MicrosoftMicrosoft Entra SDK)ID Auth SDK (sidecar)
Decide when to call the API Acquire and cache the right token
Build the HTTP request Perform client-credentials and OBO exchange
--- ---
Blueprint application Template that creates and issues agent identities. Holds the client credential (secret or federated).
Agent identity The individual AI agent. Has a unique app ID, permission grants, and audit trail.
Client SPAsingle-page application (SPA) (OBO only) Web UI that signs the user in and exchanges the user's token for an agent token on their behalf.
Sidecar container Runs client-credentials and OBO flows. Holds the blueprint credential.
Agent container Your application code. Requests authorization headers from the sidecar.
  • How a blueprint differs from an agent identity and why agents need their own identity.
  • How the sidecar exposes /AuthorizationHeader (get token) and /DownstreamApi (token + proxied call) endpoints.
  • How the sidecar forwards a signed-in user's token and has the Microsoft Entra ID Auth SDK (sidecar) mint an agent-on-behalf-of-user token via OBO.
  • How the downstream API validates agent tokens including the signature, issuer, xms_par_app_azp, and audience.
  • How to swap from ClientSecret (development) to SignedAssertionFromManagedIdentity (Azure deployments) without changing agent code.
Daily Entra.News

Get daily email updates

Get a concise summary of the latest Microsoft Entra updates delivered straight to your inbox.

Loading the secure signup form…