TL;DR
- An agent and its principal are two different identities: the software that acts and the person or team it acts for.
- Delegation and on-behalf-of mean the agent carries a limited slice of the principal's rights, never all of them.
- A trust boundary is where an agent calls a service run by someone else. The OpenID Foundation published a threat classification for exactly that moment.
- Model Context Protocol (MCP) is the common plug between agents and tools, and it still needs a real identity answer behind it.
Before you start: this page is the glossary for the rest of the site. No prior identity knowledge needed.
Imagine you hire a courier to pick up a parcel from a post office. The post office will not hand it over because the courier says so. It wants to see who the courier is, who sent them and what exactly they may collect. Every term below is a piece of that picture.
Who acts and who it acts for#
An AI agent is software that takes steps toward a goal on its own, such as calling tools, reading files or booking things. The principal is whoever it acts for: a person, a team or a company.
These are two identities. If the agent only borrows the person’s login, nobody can tell later who did what. A good setup gives the agent its own identity, so logs say “the agent did this for Anna”.
In the picture: the courier is the agent, the sender is the principal. Why this matters for a company is in why identity matters when your company starts using AI agents.
Handing over part of the rights#
Delegation means the principal hands over part of their rights. On-behalf-of (OBO) is the name for the call pattern: the agent asks a service for something, and the service sees both who is asking and who they ask for.
The word “part” is the point. A delegated token should be narrower than the person’s own access. The courier gets a note that says “collect parcel 4711”, not a copy of the sender’s passport.
The standard tool for this swap is OAuth 2.0 token exchange, defined in RFC 8693 by the IETF. It trades one token for another with a smaller scope or a different audience. My longer page covers the details: OAuth token exchange for AI agents. For how an identity provider issues that narrower token to another app, see ID-JAG explained.
Crossing into tools another company runs#
A trust boundary is the line between two parties who each run their own identity rules. Say a company agent hosted by provider A needs a tool run by provider B. B does not know A’s users and has its own idea of permissions.
The OpenID Foundation’s AI Identity Management community group published a threat classification for this moment. It lists six trouble spots: knowing which agent is acting, deciding whether to trust the other side’s keys, acting on the wrong resource, permissions that grow when translated between domains, access that outlives the task, and credentials that get captured and reused. The paper calls itself a threat model, not a solution. Its main advice to architects is to map every boundary their agents cross.
MCP is the open protocol that lets an AI application connect to tools and data sources in one common way. Think of it as the plug shape. It says how the call is made. It does not, by itself, answer who the agent is or what it is allowed to do. Those answers come from the identity layer behind it.
A meeting room booking, step by step#
Anna asks her company assistant to book a meeting room in a partner’s building system.
- The assistant has its own identity, separate from Anna.
- It gets a delegated token that says “for Anna, only the room booking scope”.
- It calls the partner’s MCP server across a trust boundary.
- The partner checks the token, checks that the request fits the scope, and answers yes or no.
- When the booking is done, the token should stop being useful.
Each step is a place where things go wrong if skipped. Step 5 is the one people forget.
Where to go next#
- The wider why: why identity matters when your company starts using AI agents.
- How an identity provider approves agent access to other apps: ID-JAG explained.
- Who decides yes or no on each tool call: who decides what your AI agent is allowed to do.
- A hands-on MCP server with narrow tokens: protecting an MCP server with OAuth.
Sources#
This post as Markdown · RSS · JSON feed
New posts by email
One email a week with new posts and labs. Unsubscribe anytime.
Your address is stored with Kit, which sends the emails. Details