Blank white background with no objects or features visible.

Olá, EMEA! A TrueFoundry está expandindo sua presença pela Europa, Oriente Médio e África. Leia mais. →

O Padrão de Corretor de Identidade para Agentes de IA: Um Limite de Confiança para Cada Credencial

By Ashish Dubey

Updated: novembro 5, 2026

Published: outubro 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.)

O problema: os agentes surgem antes do IAM preparado para agentes

O IAM corporativo foi criado para humanos e contas de serviço. Agentes não são nenhum dos dois: eles agem por em nome de um usuário, em várias ferramentas, frequentemente em cadeias. Se o seu provedor de identidade não possui capacidade de identidade de agente — ou se você simplesmente ainda não quer depender de uma — você fica com as três opções ruins com as quais toda implementação de agente começa: pegar emprestado o token do usuário, compartilhar uma conta de serviço ou realizar falsificação de identidade (impersonation). Todas as três quebram a trilha de auditoria, como abordamos em o que é identidade de agente de IA.

O padrão identity-broker permite que você pule a espera. Um componente confiável torna-se o emissor e a autoridade para a identidade do agente, para que você tenha agentes governados hoje e mantenha a opção de federar com seu IdP mais tarde.

O que o broker realmente faz

Um broker assume três funções que, de outra forma, seriam distribuídas entre seu IdP, o código do seu aplicativo e cada ferramenta. Com o TrueFoundry como broker, elas são mapeadas da seguinte forma:

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)
Um domínio de confiança emite a credencial do agente, autoriza a chamada e gerencia a autenticação de saída.

Como o fluxo de uma chamada funciona

O registro cria a identidade do agente. O agente obtém seu token do registro (via ⋮ → Obter Token) e o envia junto com o token do usuário em cada chamada:

Registrando um agente. O cenário de broker usa uma identidade suportada pelo TrueFoundry; você pode migrar um agente para um IdP posteriormente. Fonte: documentação do TrueFoundry.

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

O gateway valida ambos os tokens, verifica se o agente pode acessar o servidor MCP de destino e se ele pode agir em nome do usuário e, em seguida, encaminha a solicitação usando a autenticação de saída do destino. Qualquer coisa não permitida é negada com um erro 403. Como o TrueFoundry assina e valida ambas as credenciais, o gateway é o único domínio de confiança — não há necessidade de configurar uma troca externa.

Acessando destinos de terceiros

O broker também resolve as credenciais de saída, que é onde a maioria das integrações de agentes realmente trava. Ele oferece três modos de saída, dependendo do que o destino suporta:

‍

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.
novembro 21, 2026
|
5 min read

Identidade de Agente de IA com Microsoft Entra Agent ID: Emissão e Governança de Identidades de Agentes

No items found.
novembro 21, 2026
|
5 min read

Identidade do Agente e Delegação On-Behalf-Of (OBO): Quem Está Realmente Chamando Suas Ferramentas?

No items found.
novembro 21, 2026
|
5 min read

Agent Skills para Linear MCP: Benchmark de Precisão de 62% → 90%

No items found.
novembro 21, 2026
|
5 min read

agentgateway vs Vercel AI Gateway: gateway de agentes self-hosted ou roteador de modelos gerenciado?

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