Each delegation narrows what the agent may do
- Person's token → Agent signs inshown
- Agent signs in → Narrower tokenexchange
- Agent signs in → Request refusedtoo much
- Narrower token → Service checks audienceaudience
A flow of five boxes. The person's token is presented by an agent that authenticates as itself. Through token exchange, the agent receives a narrower delegated token bound to one service. A request for scope the person does not hold is refused. The receiving service checks audience, scope and delegation depth before acting.
The problem: agents borrow too much authority
The fastest way to wire an AI agent into a product is to hand it the user’s session or an API key with broad access. It works in the demo. In production it means the agent can do anything the user can, at any service, for as long as the credential lives, and your logs show the user did it.
That is the wrong blast radius for software that takes instructions from untrusted text. A manipulated agent with a full session can read data the task never needed, call services the task never touched, and leave an audit trail that cannot tell the person from the program acting on their behalf. The risk is not the model; it is the credential.
The approach
Treat every agent action as delegated authorization: the person stays the subject, the agent is the actor, and every delegation narrows what is possible.
- Less, never more. A delegated token carries a subset of the subject’s scope. Nothing in the chain can widen it.
- One destination. Each delegated token is bound to the audience it was issued for, so it cannot be replayed at another service.
- Visible delegation chain. The token names who acted and how many hops it has travelled, so a service can refuse chains that are too deep.
- Short life, real revocation. Delegated tokens expire, and revocations stream to every verifier.
How it works
- The agent has its own identity. It runs as a workload or service account, so it authenticates as itself, never as the user.
- Exchange. The agent presents the user’s token and asks for the scope and audience a task needs, using token exchange. Requests for scope the user does not hold are refused.
- Narrow locally where possible. With Biscuit tokens the SDK attenuates in process, with no network call. The narrowed token names the service that acted and carries its delegation depth, so you can trace where its authority came from and who can revoke it.
- Verify at the destination. The receiving service checks audience, scope and delegation depth, and rejects a chain deeper than it allows.
- Revoke. A revoked token is refused at every verifier, including one that has lost contact with the authority.
An agent acting on behalf of a person, step by step
- 1Agent → QuorumAuthSign in as itselfWorkload or account
- 2Agent → QuorumAuthExchange person's tokenMissing scope: refused
- 3QuorumAuth → AgentToken, one audience
- 4Agent → AgentNarrow it locallyBiscuit, no network call
- 5Agent → ServiceCall with the token
- 6Service → ServiceCheck the tokenToo deep: rejected
A sequence between an agent, QuorumAuth and a service. The agent authenticates as itself, as a workload or service account. It exchanges the person's token for the scope and audience the task needs; scope the person does not hold is refused. QuorumAuth returns a delegated token bound to one audience. With Biscuit tokens, the agent narrows it further in process with no network call. The agent calls the service with the narrowed token. The service checks audience, scope and delegation depth, and rejects chains deeper than it allows.
What QuorumAuth ships for it
- Delegated token exchange. Issue a delegated token for an authenticated actor, bound to the requested audience and in the same format the caller presented: JWT, Biscuit or Macaroon. An empty audience or a request for more scope is refused. Edge and origin both serve it, so a product service with no edge can delegate too.
- Local Biscuit attenuation. Narrow a token in process. The verifier sees only the delegated scope, the acting service, the intended audience and the delegation depth, and the token cannot regain what it gave up.
- Delegation depth enforcement. Rust (Axum) middleware rejects tokens beyond a configured delegation depth; Axum and TypeScript (Express) middleware enforce organization scope and required claims. A token nobody delegated verifies with no actor and no delegation hop.
- Single-use action grants. On the enterprise tier, a workflow service can obtain an authority-signed grant for one immutable action version, one owning service, a resource namespace, named operations and an expiry. It verifies once and refuses a second presentation; wildcarded operations, mutable version aliases and wider-than-subject scope are refused at issuance.
- Fail-closed verification. A revoked token is refused even by an SDK that cannot reach the authority, and the SDK presents no token when revocation state is unknown.
What changes for your team
Before: an agent holding a user’s session or a broad API key, and audit logs that record the user as the actor for everything the agent did.
After: the agent authenticates as itself and acts with a token delegated from the user. That token carries less scope than the user holds, is addressed to one service, and names the acting service and its delegation depth. A service can refuse chains that are deeper than it allows.
For a CTO, this bounds what a misbehaving or manipulated agent can reach: at most the scope the task was delegated, at the one service it was addressed to, one of the outcomes that run from first sign-in to every agent. For security teams, every delegated call carries its delegation chain, so an investigation can separate what the person did from what the agent did on their behalf. For product teams, sensitive one-off actions can use a single-use grant tied to an exact action version, so a captured grant cannot be replayed.
QuorumAuth limits what a manipulated agent can do, not what it says. Prompt filtering, prompt-injection detection and output evaluation are outside its scope. Your agent calls the SDK like any other service, with no agent framework or model integration to adopt. When a step needs a person’s approval, your product asks for it.
Local attenuation applies to Biscuit tokens; JWTs are delegated through the token exchange call instead. An agent that exchanges a person’s token holds that token, so QuorumAuth does not contain a compromised agent by revoking its delegated token alone: the agent keeps the person’s token after the delegated token is revoked.
Where to go next
Start with the agent action that touches the most sensitive data and give it its own identity and a delegated, audience-bound token. Read how agents authenticate as machine-to-machine callers, and why non-human identity needs its own lifecycle. If your agents run on Auth0 today, read the comparison with Auth0, including how agent grants and pricing compare with Auth0 for AI agents.
Frequently asked questions
Is an AI agent a user or a service?
Neither, on its own. It is software acting on behalf of a person. Authenticate the agent as a workload or service account, and authorize each action with a token delegated from the person it serves.
What is token exchange for agents?
The agent presents the user's token and receives a new one with a subset of its scope, bound to a single downstream audience. It follows the OAuth 2.0 token exchange model (RFC 8693).
Can a delegated token be widened later?
No. Asking for scope the subject does not hold is refused, and a narrowed Biscuit cannot regain the scope it gave up.
Does QuorumAuth inspect prompts or model output?
No. It controls what an agent is allowed to do and records who it acted for. It does not filter prompts, detect prompt injection or evaluate model output.