LanguageEnglish
Build →

Learn · QuorumAuth

What is delegated authorization?

Delegated authorization lets one party act on behalf of another, with a subset of their rights, for a named purpose, while both stay visible.

Updated

Authority narrows at every hop

  1. Ada and her rights → Assistant for Adadelegates
  2. Assistant for Ada → Calendar servicenarrower
  3. Calendar service → Reserve rooms onlyone audience

Ada asks an assistant to book a meeting room. The assistant acts on behalf of Ada with fewer rights, then the calendar service acts next with fewer rights still. The reservations service receives a token bound to its own audience that only allows reserving rooms, naming Ada as subject and the calendar service and assistant as actors.

Authority only flows downward: each hop holds the same or fewer rights, addressed to one recipient, and the token names who acted for whom.

A user asks an assistant to book a meeting room. The assistant calls a calendar service, which calls a reservations service. Three parties touch the request, but only one of them is the user. If each hop simply reuses the user’s token, every service in the path holds the user’s full power, everywhere. Delegated authorization fixes that: each party acts on behalf of the user with only the rights the task needs, addressed to one recipient, and the record shows who acted for whom.

What delegated authorization means

Delegated authorization is the act of granting another party the right to act on your behalf, within limits you or your authorization server set. Three things define it:

  • A subject. The person or workload whose authority is being used.
  • An actor. The party exercising that authority on the subject’s behalf.
  • Bounds. What the actor may do, where, and for how long.

The key property is that authority only flows downward. A delegate can receive the same or fewer rights than the subject, never more.

Delegation vs impersonation

Impersonation hands the actor a credential that looks exactly like the subject’s. Downstream services cannot tell an intermediary is involved, so they cannot apply rules to it, and audit trails record a call the user never made directly.

Delegation keeps both names. In OAuth, a delegated JWT carries the subject in sub and the actor in an act claim. A service can then allow “the calendar service, acting on behalf of Ada” while refusing “the calendar service, acting on its own behalf”.

Delegation vs role assignment

Role assignment gives a principal standing authority: an administrator makes Ada an editor, and Ada stays an editor until someone changes it. Delegation is per task. It borrows authority the subject already has, narrows it, binds it to a recipient, and expires. Roles answer “what may this principal do?”; delegation answers “what may this actor do for this subject, right now, here?”.

Impersonation Role assignment Delegation
Who the recipient sees Subject only The principal Subject and actor
Lifetime As long as the token Until revoked Short, per task
Can exceed the subject Not applicable Yes, it is a new grant No
Audit trail Hides the actor Shows the principal Shows the full path

Impersonation vs delegation

Impersonation

  • Looks exactly like the subject's credential
  • Recipients cannot see the intermediary
  • No rule can target the actor
  • Audit logs a call the user never made

Delegation

  • Names the subject and the actor in act
  • Short-lived, one task at a time
  • Never more than the subject holds
  • Audit shows the full path

In short Delegation lets every service see who is acting on behalf of whom, and decide on both.

Two columns. Impersonation hands the actor a credential that looks exactly like the subject's: recipients see only the subject, cannot apply rules to the intermediary, and audit trails record a call the user never made. Delegation names the subject and the actor in the act claim, is short-lived and per task, never exceeds the subject's rights, and shows the full path in audit.

Delegation keeps both names, so a service can allow the calendar service acting on behalf of Ada and refuse it acting on its own behalf.

The building blocks of delegated authorization

Scopes

Scopes name what a token allows, such as calendar:read or rooms:reserve. When a subject delegates, the actor asks for a subset of the subject’s scopes. The authorization server must refuse any scope the subject does not hold. Asking for more is called scope elevation, and it is the most common delegation bug.

Audiences

An audience names the service a token is for. A delegated token without an audience can be replayed at any service that trusts the issuer. Binding each delegated token to one audience means a leaked token works in one place only, and the receiving service should reject tokens addressed elsewhere.

Token exchange chains

OAuth token exchange (RFC 8693) is the standard way to delegate across services. Each hop presents the token it received as the subject token and asks for a new one with the next audience and fewer scopes. Nested act claims record the path:

{
  "sub": "user:ada",
  "aud": "https://reservations.example.com",
  "scope": "rooms:reserve",
  "act": {
    "sub": "calendar-service",
    "act": { "sub": "assistant" }
  }
}

Attenuation

Attenuation means narrowing a credential without asking the issuer. Formats such as Biscuit let a holder append a block that restricts scope, audience, or lifetime, and the result still verifies offline. Each block can only remove authority, so a later hop cannot win back what an earlier one gave up.

Depth limits

Each hop adds another holder of a credential that acts on behalf of the user. A depth limit caps how many times a credential can be passed on, which bounds the exposure and keeps chains readable. Verifiers should refuse anything deeper than they are willing to evaluate.

Loops

A loop happens when a credential is relayed back to a party already on its path, for example A to B and back to A. Loops can turn a narrow delegation into a confusing one and hide where a call really came from. The fix is to track the path and refuse any hop that repeats a party.

Where delegated authorization shows up

  • Microservice call chains, where each service calls the next on a user’s behalf.
  • AI agents and automations, which act on behalf of a person and need narrower rights than that person holds. See AI agent authorization, and how agent grants compare with Auth0 for AI agents.
  • App sign-in, where a user authorizes an application through the OAuth authorization code flow, protected by PKCE.
  • Workflow engines, which run steps hours after a user approved them.
  • Non-human identities, such as service accounts that run work for an organization.

Common mistakes

  • Forwarding the user’s token to every downstream service.
  • Accepting scope elevation because the request came from a trusted service.
  • Leaving out the audience, so a token is valid everywhere.
  • Authorizing on the subject alone and ignoring the actor.
  • Unbounded chains with no depth cap and no loop check.
  • Wildcard grants, such as notification:*, that cover operations nobody reviewed.

Narrow grants vs broad OAuth scopes

A classic OAuth consent asks once and grants a scope such as calendar:write. The scope covers a whole area of operations, and it holds until the token or refresh token expires. That fits an app a person uses directly. It fits an AI agent poorly: the agent needs one booking, yet it holds every write the scope covers, for as long as the token lives, and the only way to stop it is to revoke the whole consent.

A narrow grant turns that around:

  • Per task. The grant names the operations this job needs and nothing else.
  • Short-lived. It ends on its own, and each use can carry a credential that lasts only minutes.
  • Narrow-only. Whoever holds it can pass on less, never more. Asking for more is a new request to the person.
  • Revocable on its own. Ending one grant ends what was handed down from it, and leaves the person’s other sessions and grants alone.
Broad OAuth scope Narrow grant
What it covers A whole area, such as calendar:write The operations one task needs
How long it lasts Until the token or refresh token expires Until the task’s expiry; each use can be minutes
Can the holder widen it Only by a new consent No; widening is a new request to the person
Ending it Revoke the consent Revoke one grant and what was passed on from it

How QuorumAuth handles delegated authorization

QuorumAuth’s tested behaviour covers each of the bounds above:

  • Delegation never elevates. An authenticated actor can obtain a delegated token for an audience and a scope it holds. A request for a scope the subject does not hold is refused, a request with no bearer is unauthenticated, and a request with an empty audience is invalid.
  • Tokens are audience-bound. The delegated token is bound to the audience it was asked for, and a session addressed to one workload is not accepted from another.
  • Limited sessions cannot delegate. A session that can only enroll a sign-in factor cannot delegate, even for the scope it holds.
  • Attenuation only narrows. A locally narrowed token keeps only the scope it was given, cannot regain what it gave up, and carries its delegation depth.
  • Chains are capped and loop-free. A credential is not relayed beyond four hops, and it is not relayed back to a workload already on its path.
  • The actor stays visible. Verification names the service that acted, and a token nobody delegated names no actor and no delegation hop.
  • Workflow grants are single-use and exact. An action-execution grant verifies once and refuses a second presentation. Wildcard operations are refused at issuance, and a grant cannot widen authority beyond the subject’s own scopes.
  • Widening goes back to the person. A person delegates to an agent by confirming with their passkey. A child delegation cannot widen its parent, and widening a delegation is a new consent that replaces the old one.
  • One revocation, scoped to what was handed down. Revoking a delegation ends it and every child delegation made under it; a token nobody revoked keeps verifying.
  • Each use is bounded. A per-use credential lasting more than five minutes is refused, as is one addressed to another service or one presenting an operation the delegation does not grant.
  • Relying parties are declared. An organization declares the applications its OpenID Provider signs in, and a redirect URI matches only exactly as it was registered.

Together, these let you trace authority across agents and revoke it where it went wrong.

Is delegated authorization the same as impersonation?

No. With impersonation the downstream service sees only the subject. With delegation it sees the subject and the actor working for them, so it can authorize and audit both.

How is delegation different from assigning a role?

A role is standing authority given to a principal. A delegation is temporary, narrower authority one principal passes to another for a specific audience and task.

Can a delegate get more rights than the person who delegated?

It must not. A safe authorization server refuses any scope the subject does not already hold, and every later hop can only narrow further.

Why limit how deep a delegation chain goes?

Every hop is another party holding a credential for the user. A depth cap bounds that exposure and stops chains that loop back on themselves.

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 →