Skip to content

R3: align with AAuth Protocol -11 and prepare -00 - #204

Merged
dickhardt merged 2 commits into
mainfrom
r3-11-review
Sep 28, 2026
Merged

dickhardt merged 2 commits into
mainfrom
r3-11-review

Conversation

@dickhardt

Copy link
Copy Markdown
Owner

Review of draft-hardt-aauth-r3.md against the published AAuth Protocol -11, and preparation for its first datatracker submission as -00. Only draft-hardt-aauth-r3.md changes.

Changes, with the -11 section behind each

  • R3 Document Access Restriction. A party fetching r3_uri signs as a server in its own right, under the jwks_uri scheme with id set to its issuer, and the resource identifies the signer by id. -11 §11.3.2 Keying Material.
  • R3 Document Access Restriction. The entitled PS was "the PS that issued the person token the resource verified". A per-call proposal's resource token is always issued on an auth token, so the entitled PS is now the resource token's ps: the person token's iss, or on a step-up or per-call challenge the auth token's ps. -11 §6.7.1 Resource Token Structure.
  • Resource Token Extensions, r3_uri. Said only the AS fetches it. Now says the AS and the PS fetch it with a signed request, pointing at the access restriction. -11 §11.3.2.
  • R3 Processing (PS bullet). display is resource-asserted content, which the PS visually distinguishes from the agent's justification. -11 §7.4 Consent Presentation, which names the R3 display section.
  • AS Processing step 1. Was "validate the resource token signature". Now verifies the resource token and its presented_token per Resource Token Verification. -11 §6.7.2.
  • AS Processing. Removed the paragraph on "an AS reached any other way than a PS-to-AS token request". -11 has no such path: the PS is the only caller of an AS token endpoint. Added named citations for the no-agent-identifier rule and the agent_token parameter. -11 §9.3 PS-AS Federation, §9.1.1 PS-to-AS Token Request, Why No Agent Identifier Reaches a Resource.
  • Per-Call Proposals, Flow step 2. The agent sends the per-call resource token with the auth token it presented on the call as presented_token, and the per-call auth token expires no later than that auth token. -11 §7.2.1 Auth Token Request, §9.4.1 Auth Token Structure.
  • Per-Call Proposals, Flow step 4. Under 202, the pending URL answers a repeated presentation from the retained record, not with 410 Gone, until retention ends. -11 §13.2 Pending URL Security, which names R3 per-call grants. Step 1 now cites Deferred Delivery by name (-11 §6.5.1).
  • Access Mode Annotation (ladder). The restatement said "a resource MUST have verified a person token before issuing the resource token". -11 says a person token or an auth token. Reworded to match, citing Resource Token and Auth Token Usage. -11 §6.7, §9.4.2.
  • Applying Annotations ("advisory"). "An agent MUST be prepared for a 401" now covers a 401 or a 202, since requirement=auth-token may be delivered as a 202. -11 §6.5.1.
  • Resource Enforcement. "received the resource token via a 401" is now "in a challenge". -11 §6.5.1.
  • IANA, JWT Claims Registration. Table now has Claim Name, Claim Description, Change Controller (IETF), and Reference, matching -11 §15.7.
  • Named citations. Added section names to bare protocol citations at Access Mode Annotation, Applying Annotations, Authorization Endpoint Extensions, and the account field (Resource Metadata §11.2.4, Authorization Endpoint §6.6, Account Binding §11.11). Every section name cited exists in -11.

Checked with no change needed: no AAuth-Mission, approver, mission object, agent/act claims, token_endpoint, aauth-access-token, invalid_agent_token, login_endpoint, EdDSA, or old mode names. Examples use Ed25519, aa-person+jwt at the authorization endpoint, and resource/auth token claims per -11 §6.7.1 and §9.4.1. per-call is registered in the AAuth Access Mode Value Registry (-11 §15.11) in that registry's format, and satisfies the §15.12 expert criteria. R3 cites no RFC 8941, defines no error codes, and never requests sub via requirement=claims.

Submission prep

  • Removed date = 2026-07-11T00:00:00Z from the front matter.
  • I-D.hardt-aauth-events and I-D.hardt-aauth-budgets now target https://datatracker.ietf.org/doc/draft-hardt-aauth-events and .../draft-hardt-aauth-budgets.
  • Document History. The preamble said the list "becomes draft-hardt-aauth-r3-00". It says nothing about resetting the log at submission. So I removed "This document has not been submitted to the datatracker.", changed "which becomes" to "which is", and kept the -00 list. This pass is recorded as a new first bullet. The earlier bullet about "an AS reached any other way" is left as written; the new bullet records its removal.

Build: make draft-hardt-aauth-r3.txt succeeds. xml2rfc gives the same 41 warnings as main (long lines in examples, the Vocabulary Summary table width). None are new.

Needs a decision

Driven by -11:

  1. Ladder and agent-token operations. -11 says no person token or auth token carries an agent identifier ("a decision keyed on the agent identifier holds in the two-party modes and nowhere else", Why No Agent Identifier Reaches a Resource). §6.1 answers a request that did not present an agent token with requirement=agent-token. Access Mode Annotation still says a credential satisfying a later value satisfies an earlier one, so an auth token or person token satisfies an agent-token operation. That holds only where the operation's decision is not keyed on the agent identifier. One option: the ladder covers person-token and auth-token, and an agent-token operation takes the agent token. The other: keep the ladder and state the limit. Left unchanged.
  2. Per-call approval is bounded by the presented auth token's lifetime. §9.4.1 caps an auth token's exp at the presented_token's. On a per-call challenge that is the auth token the agent carried. R3 describes per-call as the operations that block on a person. If the person answers after that auth token has expired, there are two outcomes: expired_presented_token, or a per-call token that is born expired. R3 does not say what the agent or the resource does then, especially under 202, where the held invocation would be lost.
  3. scope is REQUIRED at the authorization endpoint (§6.6). R3's r3_operations example sends no scope. §6.7.1 already lets R3 replace scope in the resource token. Either R3 states that r3_operations MAY be sent in place of scope, or the protocol relaxes §6.6.

Predate -11:

  1. Three-party issuance. R3 Processing, AS Processing, and Auth Token Extensions describe only the AS populating r3_granted and r3_per_call. In PS authorization access (§4.2.4) the PS issues the auth token. The access restriction section already treats aud = PS.
  2. session-token MUST NOT appear in an annotation. The rationale is "a resource that manages its own authorization does so for the whole resource". That contradicts -11 §6 and Why Five Resource Access Modes: a resource MAY handle authorization itself for any request and apply different modes per endpoint. The rule is R3's to keep. Only the rationale conflicts.
  3. No PS delivery check for R3 claims. §9.1.3 Auth Token Delivery checks scope is no broader than the resource token's. R3 defines no matching check that r3_uri/r3_s256 match the resource token, or that r3_granted/r3_per_call fall within the document's operations.

Possible problems in the protocol spec (not changed here)

  • §11.6.2 Requirement Values lists auth-token with status 401 only. The §6 table and §6.5.1 allow 401 or 202.
  • §6.6 makes scope REQUIRED, but §6.7.1 says a companion spec may replace scope, "as R3 does" (item 3 above).
  • §9.4.2 Auth Token Usage says the agent presents the auth token, not the agent token, on every subsequent request to the resource. That conflicts with per-endpoint modes (§4.2) where an endpoint authorizes on agent identity and challenges with requirement=agent-token (§6.1). See item 1 above.
  • No rule covers a pending step-up or per-call request whose presented_token expires before issuance. Call chaining has one: it ends with expired (§10.1.1). See item 2 above.
  • The protocol's I-D.hardt-aauth-r3 and I-D.hardt-aauth-events references still target GitHub, not the datatracker.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GF34pBFY1fXuHBTFPMrqRN

- R3 fetch signed under the jwks_uri scheme (Keying Material); entitled PS
  is the resource token's ps, from the auth token on a per-call challenge
- display is resource-asserted content (Consent Presentation)
- AS Processing verifies per Resource Token Verification; drop the AS
  reached other than by a PS-to-AS token request
- per-call auth token exp capped by the presented auth token; 410
  exception at the pending URL (Pending URL Security)
- ladder rests on person token or auth token before a resource token
- runtime requirement may arrive on a 202
- JWT claim registrations name a change controller
- remove fixed date; sibling references target the datatracker;
  Document History preamble no longer says unsubmitted

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GF34pBFY1fXuHBTFPMrqRN
… session-token, delivery check

- agent-token operations: satisfied by a person or auth token only where
  the resource does not decide on the agent identifier
- late per-call approval: expired_presented_token, top-down refresh,
  resubmit, PS SHOULD apply the recorded approval; 202 re-requested
- r3_operations MAY replace scope at the authorization endpoint
- name the auth token's issuer (PS three-party, AS four-party);
  AS Processing renamed Issuer Processing
- session-token annotation ban: a session token carries no R3 grant
- Auth Token Delivery: PS checks R3 claims in the AS's auth token,
  as_unreachable on failure

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GF34pBFY1fXuHBTFPMrqRN
@dickhardt

Copy link
Copy Markdown
Owner Author

Applied the six decisions in 2cd8097:

  1. Ladder (Access Mode Annotation): a person token or auth token satisfies an agent-token operation only where the resource does not decide on the agent identifier. Where it does, the resource answers requirement=agent-token (Agent Token Required) and the agent presents its agent token for that call.
  2. Late per-call approval (Per-Call Proposals, Flow): if the presented auth token expires before the person approves, the PS answers expired_presented_token. The agent then refreshes top down (Expiry and the Refresh Margin) and resubmits the call. The PS SHOULD apply the approval it already recorded (Resource Token Structure). Under 202, the held invocation is re-requested.
  3. scope (Authorization Endpoint Extensions): r3_operations MAY be sent in place of scope, citing Resource Token Structure.
  4. Issuer: R3 Processing, Auth Token Extensions, Resource Enforcement, Per-Call Proposals, and Security Considerations now name the auth token's issuer: the PS in three-party access (PS Authorization Access (Three-Party)), the AS in four-party. "AS Processing" is now "Issuer Processing", and the agent identifier comes from the signing agent token in three-party.
  5. session-token: the MUST NOT stays. The reason is now that R3 grants travel in auth tokens and a session token carries none.
  6. Delivery check: new "Auth Token Delivery" subsection. In four-party access the PS verifies that r3_uri/r3_s256 match the resource token, and that r3_granted/r3_per_call fall within the R3 document's operations. A failure is as_unreachable.

All six are recorded in the -00 Document History. Build: make draft-hardt-aauth-r3.txt OK, with the same 41 pre-existing xml2rfc warnings.

@dickhardt
dickhardt merged commit 8b7adb0 into main Sep 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant