What is AAuth? Proof-of-possession identity for agents in one page

AAuth is an authorization protocol for AI agents built on public-key identity, key-bound tokens and signed HTTP requests. Here are the four parties, the three token types, how proof of possession works, and what auth levels control.

AAuth (Agent Auth) is an authorization protocol for AI agents that extends OAuth 2.1 with public-key identity and signed HTTP requests. Every agent, protected resource and authorization server holds a key pair instead of a shared secret. Every access token is bound to the agent’s public key, and every request carries an HTTP message signature (RFC 9421) made with the matching private key. A token copied from a log or a proxy fails without that key. This page covers the four parties, the three token types, proof of possession and auth levels for resources.

TL;DR

  • Four parties participate in AAuth: the agent, the resource, the authorization server and, when consent is required, a user.
  • AAuth defines three JWT types: an agent token (agent+jwt, 1 hour by default), a resource token (resource+jwt, 5 minutes by default) and an auth token (auth+jwt, 1 hour by default).
  • Every agent token and auth token binds to a public key in its cnf claim. A resource token binds to the agent through agent and agent_jkt (the key’s RFC 7638 thumbprint).
  • Every protocol call carries an HTTP message signature (RFC 9421), a timestamp within 60 seconds and a single-use nonce of at least 12 bytes, so copied tokens and replayed requests fail.
  • Each resource sets a default auth level (authorized, identified or none in the LumoAuth portal, plus pseudonymous when stored). That level controls whether an auth token carries the user’s real identity or a pairwise pseudonym.

Why does AAuth exist?

Standard OAuth fits web apps and single services, but AI agents break two of its common defaults: shared secrets and bearer tokens.

An agent calls APIs across frameworks, tool layers, proxies and other agents. Tokens and headers pass through logs, traces and intermediaries on the way. A bearer token works for whoever presents it, so one leaked token grants access until it expires. A shared client secret travels whenever the agent requests a new token, and someone must store and rotate it.

AAuth replaces both defaults with public-key cryptography:

  • No shared secrets. The agent creates a key pair and publishes only the public key. The private key never leaves the agent.
  • Proof of possession on every token. An access token carries the agent’s public key in its cnf claim, so the token works only alongside a matching signature.
  • Signed requests end to end. Every request carries an HTTP message signature over its method, target, chosen headers and body digest, which survives proxies that end TLS.
  • Keys on both sides. Resources have key pairs too, so a protected API tells the authorization server which scopes and which agent key to accept.

AAuth is an emerging protocol under active development. LumoAuth implements the AAuth 1.0 profile in its AAuth 1.0 specification and tracks the draft as it evolves.

Who are the four parties in AAuth?

Every AAuth flow involves three software parties and, when a person’s data or authority is requested, a fourth human party.

Party Role Identifier Keys
Agent Autonomous software, or an agent server with per-session delegates A unique identifier (an HTTPS URL in the AAuth spec; in the LumoAuth portal, any unique string that matches the agent code) Holds its private signing key; publishes public keys via JWKS URL or inline
Resource A protected API, a service, or another agent exposed as a resource A unique HTTPS URL (iss on resource tokens, aud on auth tokens) Holds its private signing key; publishes public keys via JWKS URL or inline
Authorization server Verifies identities, runs user consent when needed, and issues auth tokens The organization’s issuer URL (https://app.lumoauth.dev/orgs/{orgId}/api/v1) Signs tokens with the organization’s rotatable signing key
User Person who approves access or whose identity the agent carries An account in the organization Optional; needed only when consent or user identity is required

Giving the resource its own key pair changes the trust model. In plain OAuth, the client tells the authorization server which scopes it requests for an API. In AAuth, the resource signs a short-lived resource token that names the agent, the agent’s key thumbprint and the scopes for that call.

What are the three JWT token types?

AAuth splits identity, resource intent and authorization into three signed JSON Web Tokens (JWTs, RFC 7519). Each carries its own JOSE typ header, so one token type can never be replayed as another.

Token typ header Issued by Default lifetime (configurable range) Key binding What it proves
Agent token agent+jwt Agent server (or LumoAuth via POST /aauth/agent/issue) 3,600 s / 1 hour (60 s to 24 hours; external tokens also capped at 24 hours) cnf.jwk (or cnf.jkt matching the token’s own signing key) That this agent, or this per-session delegate, belongs to the registered agent
Resource token resource+jwt Resource (or LumoAuth via POST /aauth/resource/token) 300 s / 5 minutes (60 s to 3,600 s) agent + agent_jkt (no cnf claim) That this resource accepts a request from this agent key for these scopes
Auth token auth+jwt Authorization server 3,600 s / 1 hour (60 s to 24 hours) cnf.jwk (full public JWK only) That this agent may call this resource with these scopes and optional user or act claims

Why have three tokens instead of one?

  • The agent token isolates each session. An agent server keeps its registered key on the server and mints a short-lived agent+jwt for each worker or user session, bound to that session’s own key pair.
  • The resource token puts the API in charge of scopes. For direct authorization (request_type=auth), LumoAuth reads scopes from the resource token’s scope claim and ignores any scope field in the JSON body. The agent cannot invent a scope that the resource did not put into the token.
  • The auth token narrows authority to one API. Its aud claim names one resource, its jti can be revoked, and its cnf.jwk binds it to the agent’s key.

When verifying any AAuth JWT, LumoAuth accepts only asymmetric algorithms (RS256/384/512, PS256/384/512, ES256/384/512 and EdDSA) and checks that the algorithm matches the key type. Symmetric HS* algorithms and none are always rejected.

What about the opaque tokens?

Alongside the three JWTs, AAuth uses three opaque tokens for state kept on the authorization server. Each is a 32-byte URL-safe random string stored as a SHA-256 hash.

Opaque token Lifetime Rules
Request token 600 s (10 minutes) Represents a pending consent request; single-use, consumed when the user approves or denies
Authorization code 60 s Returned after user approval; single-use with an atomic guard; bound to the agent, delegate, key thumbprint, redirect_uri and organization
Refresh token 30 days Bound to one organization, agent, delegate and resource; not rotated on use; scopes can only narrow

A refresh token applies only to the single resource that it was granted for. Presenting it with a resource token for another resource fails with invalid_grant. If the grant is bound to a user, LumoAuth checks that the user is still active in the organization. It also checks that the user has not signed out everywhere or changed their password since the refresh token was issued.

How does proof of possession work with cnf and signed requests?

Proof of possession in AAuth has two halves: a public key inside the token, and a signature on every HTTP request made with the matching private key.

1. Key binding inside the token

Both agent+jwt and auth+jwt carry a confirmation claim (cnf, RFC 7800). On an auth token, cnf.jwk holds the agent’s full public JSON Web Key (RFC 7517):

{
  "iss": "https://app.lumoauth.dev/orgs/acme-corp/api/v1",
  "aud": "https://api.mailservice.com",
  "agent": "https://email-agent.aiservices.com",
  "scope": "email:read email:send",
  "exp": 1795827600,
  "iat": 1795824000,
  "jti": "7a3f9c21d4b8e601a2c4f5908b1d3e72",
  "cnf": {
    "jwk": {
      "kty": "OKP",
      "crv": "Ed25519",
      "x": "11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo"
    }
  }
}

On an agent token, cnf.jwk holds the delegate’s public key. LumoAuth also accepts cnf.jkt on an agent token when that thumbprint matches the key that signed the token itself. On an auth token, only cnf.jwk is accepted.

A resource token carries no cnf claim. Instead, it carries agent and agent_jkt, the SHA-256 thumbprint (RFC 7638) of the agent’s public JWK. That thumbprint must match the key bound in the presenting agent token.

2. Every HTTP request is signed

Presenting a token alone always fails. Every call to LumoAuth’s AAuth endpoints, and every call from an agent to a protected resource, carries an HTTP message signature (RFC 9421) in Signature-Input and Signature.

LumoAuth enforces a fixed signature profile:

  • Required components. Every signature covers @method, @authority, @path and signature-key, plus @query if and only if the URL has a query string. On the agent token and revocation endpoints, it also covers content-digest, content-type and authorization. On /aauth/agent/issue, it adds content-digest; on resource endpoints and the platform bridge, it adds content-digest and content-type.
  • Body integrity. Every request with a body carries a Content-Digest header (RFC 9530) whose SHA-256 or SHA-512 hash matches the exact body bytes.
  • Replay protection. Signature-Input must include created within 60 seconds of the server’s clock and a nonce with at least 12 bytes of entropy. Each nonce works once per authority and key identifier, enforced by a database unique constraint and kept for 120 seconds.
  • Algorithms. LumoAuth accepts three RFC 9421 signature algorithms: ed25519, ecdsa-p256-sha256 (raw 64-byte r || s, not ASN.1 DER) and rsa-pss-sha512. An agent’s registration can narrow this list.
  • Key resolution. On agent token calls, the signing key comes from the agent token’s cnf claim. On /aauth/agent/issue, the agent server identifies its key in a Signature-Key header (jwks_uri scheme; the profile also defines hwk, jwt and x509).

When a protected resource receives a call with an auth+jwt, it verifies the JWT and checks that the signature came from the key in cnf.jwk. Resources that introspect an auth token via POST /aauth/auth/token/verify receive cnf_jkt and pop_required: true, reminding the resource to verify the request signature against that key.

Read HTTP Message Signatures (RFC 9421) explained in 12 comic strips for a visual walkthrough of covered components, signature bases and nonces.

How does an AAuth flow work?

One full trip from agent to resource takes five steps:

  1. The agent obtains an agent token (agent+jwt). The agent server signs one for a delegate’s key pair, or sends a signed call to POST /aauth/agent/issue so LumoAuth mints it.
  2. The resource mints a resource token (resource+jwt). The resource sends a signed call to POST /aauth/resource/token, naming the agent, its agent_jkt thumbprint and the requested scope.
  3. The agent requests an auth token. It sends a signed POST /orgs/{orgId}/api/v1/aauth/agent/token with Agent-Auth: agent_token=<JWT> (or Authorization: AAuth agent_token=<JWT>), request_type: "auth" and the resource_token in the body.
  4. LumoAuth issues an auth token or starts user consent.
    • Direct issuance: When user-in-the-loop authorization is off, LumoAuth issues an auth token directly. It also issues one when that switch is on, the request names at least one scope, every named scope is pre-authorized, and none is an identity scope. When no user is in the loop, every requested scope must be pre-authorized, or LumoAuth rejects it with invalid_scope.
    • User consent: LumoAuth asks a user to consent when user-in-the-loop authorization is on and the request cannot use pre-authorized scopes. That happens when the request names an identity scope, names a scope outside the pre-authorized list, or finds no pre-authorized list. LumoAuth then answers 200 with a 600-second request_token and an authorization_uri. A 401 is always an authentication failure, never a consent prompt. The user approves or narrows scopes on the consent screen, LumoAuth redirects back with a 60-second code, and the agent redeems it with request_type: "code".
  5. The agent calls the resource. The agent sends Authorization: Bearer <auth+jwt> along with an RFC 9421 signature made with its private key. The resource verifies both the token and the signature.

Here is a direct authorization request to the agent token endpoint:

POST /orgs/acme-corp/api/v1/aauth/agent/token HTTP/1.1
Host: app.lumoauth.dev
Content-Type: application/json
Content-Digest: sha-256=:<base64-sha256-of-body>:
Agent-Auth: agent_token=eyJhbGciOiJSUzI1NiIsInR5cCI6ImFnZW50K2p3dCIsImtpZCI6ImtleS0xIn0...
Signature-Input: sig1=("@method" "@authority" "@path" "signature-key" "content-digest" "content-type" "authorization");created=1795824000;nonce="9kP2xR8mQ1vT4wY7nB3cZA"
Signature: sig1=:<base64url-signature-bytes>:

{
  "request_type": "auth",
  "resource_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6InJlc291cmNlK2p3dCIsImtpZCI6ImtleS0xIn0..."
}

When no user consent is required, LumoAuth replies with the key-bound auth token:

{
  "request_type": "auth",
  "auth_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6ImF1dGgrand0Iiwia2lkIjoia2V5LTEifQ...",
  "token_type": "auth+jwt",
  "expires_in": 3600,
  "refresh_token": "aauth_refresh_..."
}

Two more request_type values run on the same endpoint:

  • refresh trades the refresh token and a fresh resource token for the same resource to get a new auth token. An optional scope field narrows the new token without changing the stored grant.
  • exchange trades an upstream auth+jwt (issued by the same organization and addressed to the acting agent) plus a downstream resource+jwt for a downstream auth+jwt. Scopes narrow to the intersection of both tokens, and LumoAuth adds each hop to a chain of act claims, up to 5 hops deep.

What do auth levels on a resource control?

Every registered resource has a Default auth level. This setting controls how much of the user’s identity an auth token carries when a user is bound and openid was granted. It does not determine whether a user sees a consent screen; the agent’s user-in-the-loop switch and pre-authorized scopes determine that.

Default auth level What an auth token carries (when a user is bound and openid was granted)
authorized (default; also applied to unregistered resources) The real user ID in sub and claims for granted identity scopes (profile adds name, given_name, family_name; email adds email, email_verified) only when a consent record exists for that user, agent and resource. Without a consent record, identity fails closed to a pairwise pseudonym in sub and LumoAuth audits aauth.consent_record_missing.
identified The real user ID and claims for granted identity scopes without checking for a consent record.
none States that the resource serves callers without an auth token. The LumoAuth portal requires explicit confirmation. If an agent requests a token anyway, identity claims behave like identified.
pseudonymous Only the pairwise pseudonym in sub and no other identity claim for the user. The portal form offers authorized, identified and none; LumoAuth honors pseudonymous when a resource stores it.

The pairwise pseudonym is a base64url-encoded HMAC-SHA256 value computed with a server-held key over the organization, the resource identifier and the user ID. The same person receives the same sub at one resource and a different sub at every other resource. A resource can match a returning user by that value, but it cannot reverse the pseudonym into a user ID or link that person across two APIs.

Identity scopes (openid, profile, email, phone and address) never appear in the auth token’s scope claim. An auth token carries sub only when openid was granted. phone and address can be requested and granted, but LumoAuth adds no claim for them.

How does AAuth compare with client credentials and DPoP?

AAuth is not the only way to authenticate an agent. If your agent runs on Kubernetes, GitHub Actions or a cloud that issues OIDC tokens, workload identity is often simpler because there is no key to manage. When the agent does hold a key or calls other agents, the differences matter.

  Client credentials (Bearer) Client credentials + DPoP AAuth
Agent credential Shared secret or private_key_jwt Shared secret or private_key_jwt Agent key pair and agent+jwt
Token binding None (bearer) Bound to DPoP key (cnf.jkt) Always bound to agent key (cnf.jwk)
What each request proof covers Nothing Method, URI without query, time, jti, token hash Method, authority, path, query, headers and body digest (RFC 9421)
Resource identity resource parameter only resource parameter only Signed resource+jwt with agent and agent_jkt
Multi-hop delegation Separate RFC 8693 exchange Separate RFC 8693 exchange Built-in request_type=exchange with chained act (up to 5 hops)
Best fit Legacy OAuth clients OAuth APIs and MCP servers Autonomous agents that hold keys and need end-to-end signed calls

LumoAuth supports all three, and DPoP is the sender constraint for standard OAuth tokens. For a full comparison across all six identity types for agents, read Six ways an AI agent can prove who it is.

How LumoAuth does it

AAuth agents and resources are registered in the Organization Portal, not through the Admin API.

  1. Open AI Agents → Agents (/portal/agents) and click Register agent.
  2. On step 2, How it proves its identity, select AAuth. Enter the Agent identifier, supply public keys through JWKS URL or JWKS (inline), and optionally narrow Signing algorithms (ed25519, ecdsa-p256-sha256, rsa-pss-sha512).
  3. On step 3, What it may do, set capabilities, budget limits and the AAuth options under Acting for people (User-in-the-loop authorization, Delegation to sub-agents, Token exchange and Pre-authorized scopes). Add Redirect URIs afterwards by editing the agent under the AAuth credentials tab.
  4. Register each protected API from the AAuth resources tab by clicking Register resource (/portal/aauth/resources/create). Enter its HTTPS Resource identifier, JWKS URI or Public keys, Scopes with user-facing descriptions, Default auth level and Resource token lifetime. Adding, editing or deleting a resource requires settings.manage alongside the matching agents.* permission.

Every AAuth registration links to one core agt_… record, following the one agent, one record model:

  • One kill switch. Suspending or revoking the agent revokes its AAuth tokens alongside its core OAuth tokens, just-in-time requests, token vault grants and AI-gateway keys.
  • Platform bridge. To call core APIs such as just-in-time permissions, the token vault or the authorization PDP, an AAuth agent sends a signed request to POST /orgs/{orgId}/api/v1/aauth/agent/platform-token. The body carries grant_type=urn:ietf:params:oauth:grant-type:token-exchange, subject_token (the agent+jwt) and subject_token_type=urn:lumoauth:params:oauth:token-type:aauth-token. LumoAuth returns a core access token capped at 300 seconds and bound with DPoP (cnf.jkt) to the same signing key, narrowed to the agent’s capabilities and checked against conditional access policies.
  • Organization-scoped discovery. LumoAuth serves /.well-known/aauth-issuer, /.well-known/aauth-agent and /.well-known/aauth-resource under /orgs/{orgId}/api/v1 (cached for 1 hour), plus JWKS endpoints for each agent and resource.
  • Generic error challenges. Authentication failures at the agent token endpoint return 401 with one of five generic descriptions so callers cannot probe registration state. Detailed failure reasons go to the audit log (aauth.signature_verification_failed and aauth.agent_token_rejected).
  • SDK signers. Building RFC 9421 headers by hand is error-prone. LumoAuth’s published SDKs handle signing for you: AAuthClient in Python (lumoauth[aauth]), signRequest() in Node.js (@lumoauth/agent) and SignRequest in Go.

Read the AAuth overview for a full worked example, the AAuth 1.0 specification for every claim and error code, or the AAuth quickstart to make your first signed call.

Standards involved

  • OAuth 2.1, OAuth 2.1 (draft), the authorization framework that AAuth extends
  • HTTP message signatures, RFC 9421, used to sign every AAuth request
  • Request body digest, RFC 9530, for the Content-Digest header that brings JSON bodies under the signature
  • Structured HTTP header fields, RFC 8941, the syntax of Signature-Input, Signature and Signature-Key
  • JSON Web Token (JWT), RFC 7519, JSON Web Key (JWK), RFC 7517, and Key thumbprint, RFC 7638, for AAuth tokens and agent_jkt
  • Proof-of-possession key semantics for JWTs, RFC 7800, for the cnf claim
  • OAuth 2.0 token exchange, RFC 8693, for multi-hop act chains and the platform bridge
  • Demonstrating Proof of Possession (DPoP), RFC 9449, for binding tokens returned by the platform bridge

The full list is on the standards reference.

FAQ

What is AAuth, and how does it relate to OAuth 2.1? AAuth (Agent Auth) is an emerging authorization protocol for AI agents that extends OAuth 2.1 with public-key identity and HTTP message signatures (RFC 9421). Each party holds a key pair instead of a shared secret. Every token is bound to a public key, and every protocol request carries a signature made with the matching private key.

Why does AAuth have three JWT token types instead of one access token? Each token proves a different fact. An agent token (agent+jwt) proves the agent or a per-session delegate to the authorization server. A resource token (resource+jwt) lets the protected API declare the scopes and the exact agent key that it will accept. An auth token (auth+jwt) grants the agent access to that API, bound to the agent’s key.

What happens if someone copies an AAuth token from a log? The copied token is useless on its own. Every agent token and auth token carries the agent’s public key in its cnf claim, and every request must carry an HTTP message signature made with the matching private key. Without that private key, the server or resource rejects the call.

How is AAuth different from OAuth client credentials with DPoP? Client credentials with DPoP (RFC 9449) still uses a shared secret or a client assertion at the token endpoint. A DPoP proof covers only the method, the URI without the query, and a hash of the token. AAuth removes shared secrets, gives both agents and resources key pairs, signs headers and body digests with RFC 9421, and includes resource tokens and multi-hop token exchange.

Does a resource’s default auth level control whether a user sees a consent screen? No. The agent’s registration determines whether a user must consent, based on whether user-in-the-loop authorization is on and whether the requested scopes are pre-authorized. The resource’s default auth level controls how much of the user’s identity an auth token carries, such as the real user ID or a pairwise pseudonym.

Why does AAuth not rotate refresh tokens? Every refresh call must carry an HTTP message signature made with the key bound to the agent or delegate, plus a fresh resource token from the same resource. Because a stolen refresh token cannot be used without that private key, proof of possession removes the need for rotation.


Related: AI agent identity and token exchange and delegation on the solutions pages, What is an AI agent identity? and HTTP Message Signatures (RFC 9421) explained in 12 comic strips on this blog.

Sign your first agent request with the AAuth quickstart.

Last updated .

Ship passwordless sign-in this week. Put guardrails on your agents today.

The Developer plan is free for 10,000 monthly users and ten agents, with no card. Everything uses open standards, so moving in or out is a config change.