Where ID-JAG fits in enterprise MCP authorization
Many enterprise MCP deployments depend on per-user OAuth consent screens or static credentials. Both sit largely outside the central identity provider. Security teams then struggle to apply a consistent identity policy, scope decision or revocation to the tool access that AI clients and agents obtain.
ID-JAG moves the trust decision back to the enterprise IdP. The IdP, which already authenticates the user, issues an identity assertion in JWT format. The MCP authorization server accepts that assertion and issues an access token for the MCP server. The exchange builds on two established OAuth mechanisms: token exchange (RFC 8693) and the JWT bearer grant (RFC 7523). It is also referred to as cross-app access, and it is the basis for enterprise-managed authorization in MCP.
The pattern is familiar from general federation guidance. NIST IR 8587 describes a token service, or authorization server, as the intermediary when identity tokens or assertions are exchanged for access tokens. In that model the resource server verifies the presented token and evaluates access policy before granting access. Treat the MCP authorization server as the token service and the MCP server as the resource server. Confirm exact parameter names and extension details against the current MCP authorization specification before you build.
Validating the assertion at the authorization server
Validation is where most of the security value sits. NIST guidance for relying parties is a useful baseline: accept the token only if the signature validates using the key identified in the header from the identified issuer, and only if that issuer is trusted to provide identities to this relying party. In OpenID Connect the issuer appears in the 'iss' field and the signing key in the 'kid' header field.
A workable validation order is as follows. First, resolve the issuer against an explicit allow list of enterprise IdPs. Second, select the signing key by 'kid' from that issuer only, and verify the signature with a library that both decodes and verifies. Decoding alone is not validation. Third, confirm the authorization server is the intended audience of the assertion. NIST describes this as the relying party confirming it is the intended audience. Fourth, enforce the expiry and issued-at limits you have documented. Fifth, check that the subject maps to a known user or account in your policy.
Keep claim content minimal. NIST SP 800-63C requires the IdP and relying party to exchange only the data necessary for the function. For an MCP exchange this usually means a stable subject, the issuer, the audience and time bounds, with additional attributes only where a scope decision needs them.
The same discipline applies to the access token. It should be restricted to the MCP server it was issued for, and the MCP server should confirm it is the intended audience. A token accepted by any server that receives it invites confused-deputy problems, where one service is tricked into using a token meant for another.
Scope mapping, token lifetime and failure handling
Scope mapping translates IdP policy into what the access token allows. Start from the tools and resources the MCP server exposes and define scopes at a granularity you can reason about, such as read versus write on a resource family, rather than one broad scope for the whole server. The authorization server should grant the intersection of what the client requested, what the user's enterprise entitlements allow and what your policy permits. Requests that exceed it should be reduced or rejected, not silently widened.
Token lifetime is a tradeoff. Short lifetimes limit the value of a stolen token and narrow the window in which a revoked user retains access. They also increase exchange traffic and the number of times clients must return to the IdP. NIST IR 8587 advises documenting security policy for both identity and access tokens and points to key management, token verification and lifecycle controls. It also notes that proof-of-possession and global revocation are still emerging, so plan for revocation latency instead of assuming it is zero.
Failure handling should be explicit and uniform. Reject the exchange on any failed check: unknown issuer, unknown key, bad signature, wrong audience, expired assertion or unmapped subject. Return a generic error to the client and record the specific reason internally. Treat a repeated assertion as suspect and consider tracking assertion identifiers for the length of the assertion lifetime to limit replay. Decide in advance what the client does when the IdP is unreachable, and whether any cached access token may continue to be used until it expires.
What authorization does not cover
A valid access token answers a narrow question: was this user and client permitted to obtain access to this MCP server with these scopes. It does not answer what the agent should be allowed to do on each tool call. Once the token is accepted, an agent may issue many calls with arguments and data that no one reviewed at issuance time.
Several gaps remain after the exchange. Scopes are coarse compared with individual calls, so a permitted scope can still cover a call that is inappropriate for its parameters or the data involved. Tool responses may contain sensitive content that should not return to the model unmodified. Call volume is not bounded by the token. High-impact actions may need human approval, which a token cannot express. And the token record shows that access was granted, not what was done with it.
NIST's generic flow separates token issuance from resource-side policy evaluation, and NIST SP 800-207A names gateways and sidecar proxies as policy enforcement points that authenticate the credential at each hop. The practical conclusion is to design two layers. ID-JAG and the authorization server decide who gets a token and with what scopes. A separate enforcement point in the execution path decides, per call, whether to proceed, and records that decision as evidence you can produce later.
Where Trussed fits
Trussed complements token-based authorization rather than replacing it. It enforces policy in the execution path on MCP tool calls: allow, redact, block, rate limit, or escalate for human approval. Decisions are enforced at runtime, not reviewed after the fact.
That enforcement produces audit-ready evidence of what the AI was allowed to do and what it did, which a regulated enterprise can use alongside the identity records from the IdP and the authorization server. Trussed supports self-managed deployment in the customer cloud, with configurable retention and data residency.