Blank white background with no objects or features visible.

Estamos disponibilizando acesso gratuito ao Gartner Hype Cycle for AI Governance 2026 completo. Obtenha sua cópia →

The Identity-Broker Pattern for AI Agents: One Trust Boundary for Every Credential

By Ashish Dubey

Updated: November 1, 2026

Published: October 31, 2026

TL;DR:

Not every team has an identity provider that understands agents — and most want governed agents now, not after an IdP migration. The identity-broker pattern is the answer.

  • One component plays all three agent control-plane roles: it issues each agent's identity, authorizes every call, and mints scoped credentials for each hop. Your enterprise IdP still authenticates human users.
  • In TrueFoundry this is the default scenario. The gateway signs and validates the agent token itself, so there is no external token exchange to configure.
  • Every request carries two tokens: the user's token in Authorization and the agent's token in x-tfy-agent-authorization. The gateway checks both, then forwards with the target's outbound auth.
  • The gateway is the trust domain. Access comes from grants in one place: who may invoke an agent and whom it may act for, plus which targets it may reach.
  • It is not a dead end. You can move individual agents to Okta-, Entra- or SPIFFE-backed identities later — only the source of identity changes; the checks and governance stay the same. (Per-hop token issuance via the gateway as an STS is marked coming soon.)

The problem: agents arrive before agent-aware IAM

Enterprise IAM was built for humans and service accounts. Agents are neither: they act for a user, across several tools, often in chains. If your identity provider has no agent-identity capability — or you simply don't want to depend on one yet — you are left with the three bad options every agent deployment starts with: borrow the user's token, share a service account, or impersonate. All three break the audit trail, as we cover in what AI agent identity is.

The identity-broker pattern lets you skip the wait. One trusted component becomes the issuer and authority for agent identity, so you get governed agents today and keep the option to federate with your IdP later.

What the broker actually does

A broker takes on three roles that would otherwise be spread across your IdP, your app code, and each tool. With TrueFoundry as the broker, they map like this:

Role Played by
Identity provider (users) Your existing IdP / SSO, or a TrueFoundry personal access token
Identity provider (agents) TrueFoundry — mints a signed token per registered agent
Authorization Agent Gateway and MCP Gateway, from collaborator grants
Per-hop token issuance TrueFoundry as an STS (coming soon)
Third-party credentials MCP Gateway outbound auth (managed, client-credentials, or per-user OAuth)
One trust domain issues the agent credential, authorizes the call, and handles outbound auth.

How a call flows

Registration creates the agent's identity. The agent gets its token from the registry (via ⋮ → Get Token) and sends it with the user's token on every call:

Registering an agent. The broker scenario uses a TrueFoundry-backed identity; you can switch an agent to an IdP later. Source: TrueFoundry docs.

Authorization: Bearer <USER_TOKEN>
x-tfy-agent-authorization: Bearer <AGENT_TOKEN>

The gateway validates both tokens, checks whether the agent may reach the target MCP server and whether it may act for the user, then forwards the request using the target's outbound auth. Anything not granted is denied with a 403. Because TrueFoundry signs and validates both credentials, the gateway is the single trust domain — there is no external exchange to stand up.

Reaching third-party targets

The broker also solves outbound credentials, which is where most agent integrations actually stall. It offers three outbound modes depending on what the target supports:

‍

Try now.

One gateway for all your models, MCP servers, and agents.
No credit card needed.

Start free
Table of Contents

One Gateway for Every LLM, Agent and MCP Server

Book a 30-min with our AI expert

Book a Demo

The fastest way to build, govern and scale your AI

Book Demo
Summarize with
ChatGPT logo by OpenAI
Perplexity AI logo
Blurry red snowflake on white background, symmetrical frosty design with soft edges and abstract shape.

Discover More

No items found.
November 1, 2026
|
5 min read

The Identity-Broker Pattern for AI Agents: One Trust Boundary for Every Credential

No items found.
November 1, 2026
|
5 min read

Claude API Pricing: A Model-by-Model Cost Breakdown

No items found.
October 31, 2026
|
5 min read

Claude Code Subagents: What They Are and How to Use Them

No items found.
October 31, 2026
|
5 min read

Claude Code with Amazon Bedrock: Setup, IAM, and Cost Control

No items found.
No items found.

Recent Blogs

Black left pointing arrow symbol on white background, directional indicator.
Black left pointing arrow symbol on white background, directional indicator.

Frequently asked questions

What is an identity broker for AI agents?

A component that takes on the agent control-plane roles your IdP and app code otherwise would: issuing each agent's identity, authorizing every call, and minting scoped credentials for each hop. In TrueFoundry the gateway is the broker, and it signs and validates the agent token itself.

When should I use the broker instead of my IdP?

When your IdP has no agent-identity capability, when you want governed agents quickly, or when your agents are in-house and their targets are internal or reachable with gateway-held credentials. If policy requires every principal in the corporate directory, use an IdP-backed scenario instead.

Does the broker replace my SSO?

No. Your enterprise IdP still authenticates human users. The broker only provides and governs agent identity, carrying the user's token alongside the agent's on every call.

How does the gateway reach third-party tools?

Through outbound auth on the MCP server: no auth or a managed header for internal targets, OAuth2 client credentials for app-to-app SaaS, or per-user OAuth (authorization code) when the SaaS needs per-user consent. The gateway stores and refreshes per-user tokens.

Can I move an agent to Okta or Entra later?

Yes. Only the source of the agent's identity changes; the collaborator grants, authorization checks, and audit trail stay the same. You can mix broker-backed and IdP-backed agents in one tenant.

What happens on an unauthorized call?

The gateway denies it with a 403 that names the refused principal and the reason — whether the agent lacked access to the target or lacked permission to act for that user.

Take a quick product tour
Start Product Tour
Product Tour