Never pass the user's token to a downstream system
MCP token passthrough is banned by the spec. Stop the FusionAuth token at the gateway, give each backend its own credential and check aud per gateway.
Chatis Santos · October 19, 2026 · 4 min read · For engineers
The FusionAuth token a client sends to the MCP gateway should go no further than the gateway. Every backend behind it reaches Salesforce, Databricks or Google with a credential of its own, either a service account or a token minted for that user and that system, and the Model Context Protocol (MCP) spec forbids the alternative, which it calls token passthrough. In the Northfield Energy design it's the one rule I wrote down without a tradeoff table next to it.
What passthrough means here
Passthrough is when a tool takes the bearer token that arrived on the tools/call request and reuses it on an outbound call. It looks free. The token already proves who the user is, after all, and the downstream call needs a token.
First, the token's aud should name the gateway, so a downstream system that accepts it is trusting a token never issued for it.
Second, the downstream system's own permissions no longer apply. Salesforce sharing rules and Google ACLs are enforced on a Salesforce or Google token for that user. A FusionAuth token only carries team roles, which nothing downstream knows how to read, so the only control left is whatever the backend code happens to enforce.
Third, a backend holding a token that's valid across the platform can call anything the token opens, and so can anyone who gets into that backend.
What the backend gets instead
The backend never sees the bearer token. The gateway validates it, checks the tool's policy, opens an audit record and forwards the call to the owning backend with a signed internal identity (subject and roles) over the private network. Whether AgentCore Gateway forwards those claims to targets is on the verify list.
The backend then fetches its own credential, one of two kinds:
- Service identity. A Salesforce integration user, a Databricks service principal, a database role. The manifest names it (
credential: salesforce-readonly) and the platform resolves it from Secrets Manager at runtime. - On-behalf-of. The user consents once to Google or Salesforce, the token vault holds the refresh token and the tool calls as that person.
Both paths end with a credential issued for the downstream system. Service identity is cheap, one secret reference per backend, while on-behalf-of needs a token vault, a consent flow per provider and refresh handling, which is why the Northfield plan holds it until phase 3. Choosing per downstream system is covered in service identity or on-behalf-of.
A couple of cheap rules go with it. Secrets never live in the repo, so a manifest carries a credential name, a provider name or an ARN, and a secret scanner blocks anything else. And each backend gets one execution role, scoped to its team's secrets prefix (/mcp/<team>/*).
Where the vault lives depends on the stack. On AgentCore, AgentCore Identity is the token vault, with credential providers for Google and Salesforce and a three-legged consent flow, though that's from my reading of the product and not from a test. Otherwise FusionAuth doesn't cover this part and you'd run a small token broker. How the consent link reaches someone sitting in Claude.ai is unverified, so prototype one on-behalf-of tool before promising it to teams.
Audience checks on the way in
A gateway should accept only tokens minted for it. FusionAuth sets aud to the application's client ID by default, which rejects tokens from other FusionAuth applications but can't tell one gateway from another, so the design sets the audience to the gateway's identifier (application config or a JWT populate lambda) and has each gateway validate it, with short-lived access tokens and refresh.
One detail to confirm with FusionAuth. With several gateways (the recommended shape is two to four, one per domain), can one sign-in cover all of them through resource indicators or per-gateway audiences, or is it one sign-in per gateway? Both are workable.
The other spike questions, Dynamic Client Registration and protected resource metadata, are in MCP OAuth with FusionAuth.
An agent acting for a person is the one case I'd settle in the spike instead of by rule. In the architecture paper I had an AgentCore agent forward the human's JWT to the gateway. That is passthrough only if the token's aud doesn't name the gateway. With one shared application and one audience it does, and the agent is a client like Claude Code. With per-gateway audiences the agent needs a token minted for that gateway. The alternative, from the design options paper, is an agent with its own client-credentials token carrying the person as a separate claim, authorized on the intersection of the two. In both designs the token stops at the gateway.
If you're deciding this
Put the passthrough ban in the server template and the manifest schema, where a wiki page can't enforce it. The template loads credentials by name from the platform and has no code path that reads the inbound token, so a team would have to go out of its way to break the rule. Then test the aud check in the phase 0 spike with a token from a second FusionAuth application, before anyone assumes the gateway rejects it.
- MCP OAuth with FusionAuth and three details that block clients
FusionAuth works as the OAuth 2.1 server for an MCP platform if you verify dynamic client registration, token audience and RFC 9728 metadata first.
- Service identity or on-behalf-of for MCP downstream calls
Default MCP downstream authentication to service identity per tool. Use on-behalf-of OAuth only where Salesforce or Google permissions and audit matter.