1. [Home](https://quorumauth.com/) /
2. [Solutions](https://quorumauth.com/solutions/) /
3. AI agent authentication and authorization

Solutions · QuorumAuth

# AI agent authentication and authorization

> Let AI agents act on behalf of users with tokens that carry less scope, name who acted, bind to one service and expire, instead of borrowing the user's session.

An AI agent that holds a user's full session can do everything that user can. Give it a delegated token instead, narrowed to the task, addressed to one service, and traceable back to the person on whose behalf it acts.

Updated October 28, 2026

Imagine lending a friend your house key to water one plant. Instead of the whole key ring, you give them a signed note: this house only, the kitchen only, until tonight, and it names your friend. If your friend asks a helper, the helper's note can only allow less, never more. And you can cancel the note, and every door will refuse it.

On this page

1. The problem: agents borrow too much authority
2. The approach
3. How it works
4. What QuorumAuth ships for it
5. What changes for your team
6. Where to go next

Each delegation narrows what the agent may do

1. Person's token → Agent signs in shown
2. Agent signs in → Narrower token exchange
3. Agent signs in → Request refused too much
4. Narrower token → Service checks audience audience

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.

A delegated token carries less than the person holds, for one service only.

## 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](https://quorumauth.com/learn/what-is-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

1. **The agent has its own identity.** It runs as a workload or service account, so it authenticates as itself, never as the user.
2. **Exchange.** The agent presents the user’s token and asks for the scope and audience a task needs, using [token exchange](https://quorumauth.com/learn/what-is-oauth-token-exchange/). Requests for scope the user does not hold are refused.
3. **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](https://quorumauth.com/delegation-lineage/).
4. **Verify at the destination.** The receiving service checks audience, scope and delegation depth, and rejects a chain deeper than it allows.
5. **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

1. 1 Agent → QuorumAuth Sign in as itself Workload or account
2. 2 Agent → QuorumAuth Exchange person's token Missing scope: refused
3. 3 QuorumAuth → Agent Token, one audience
4. 4 Agent → Agent Narrow it locally Biscuit, no network call
5. 5 Agent → Service Call with the token
6. 6 Service → Service Check the token Too 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.

The agent never acts as the person; it acts on their behalf, with less.

## 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](https://quorumauth.com/guides/quorumauth-outcomes/). 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](https://quorumauth.com/security/). 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](https://quorumauth.com/solutions/machine-to-machine-authentication-platform/), and why [non-human identity](https://quorumauth.com/learn/what-is-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](https://quorumauth.com/compare/auth0-alternative/).

## 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.

## Related reading

[Learn QuorumAuth What is OAuth token exchange?OAuth 2.0 token exchange (RFC 8693) trades one token for another with a new audience or narrower scope. Delegation, impersonation, and examples.Read](https://quorumauth.com/learn/what-is-oauth-token-exchange/) [Learn QuorumAuth What is delegated authorization?Delegated authorization lets one party act on behalf of another with fewer rights. How it differs from impersonation and how scope, audience and depth limit it.Read](https://quorumauth.com/learn/what-is-delegated-authorization/) [Learn QuorumAuth What is a non-human identity?A non-human identity (NHI) is an identity software uses to act without a person: service accounts, workloads, API keys, bots. Examples, risks and controls.Read](https://quorumauth.com/learn/what-is-non-human-identity/) [Learn QuorumAuth What is workload identity?Workload identity lets software prove who it is from where and how it runs, so services stop sharing static API keys and passwords.Read](https://quorumauth.com/learn/what-is-workload-identity/) [Solutions QuorumAuth Machine to machine authentication Authenticate services, jobs and scripts with scoped, revocable, short-lived tokens instead of long-lived API keys that leak and never get rotated.Read](https://quorumauth.com/solutions/machine-to-machine-authentication-platform/) [Solutions QuorumAuth Zero trust service authentication Give every service a short-lived, attested identity and mutual TLS, so a stolen credential or a reachable network address no longer grants access.Read](https://quorumauth.com/solutions/zero-trust-service-authentication/)

## Worked examples

- [Use cases QuorumAuth What one leaked AI agent token can reach, and how QuorumAuth limits it A worked use case: 50 AI agents acting for 25 staff. How far a leaked agent token reaches when it is forwarded, and when it is bound to one service.Worked use case: an illustrative business, built from the sources and formulas shown. Not a customer story.Read](https://quorumauth.com/use-cases/ai-agent-authorization/)

## Talk to sales about QuorumAuth.

QuorumAuth is sold through our sales team. The Build page shows the drop-in sign-in on your origin and how to reach sales about your stack.

[Go to Build and contact sales →](https://quorumauth.com/onboarding/)
