Repository navigation
Budgets: align with AAuth Protocol -11 and prepare -00 - #206
Conversation
Examples: the resource token names the exhausted auth token in both presented_jti and budget_consumed; the auth token carries the tenant and mission_s256 the resource token copies from it; the PS-to-AS request covers content-type and content-digest; the clarification 202 carries Cache-Control: no-store; resource metadata shows revocation_endpoint. Prose: the refresh margin and the Signature-Error answer to an expired token; a step-up auth token inherits the exhausted token's exp; revocation of an auth token follows -11's who-revokes-what and 202 completion; (iss, sub) without tenant; the clarification-round limit is the base protocol's; usage requests sign as a server under Keying Material; mission identity is the PS plus mission_s256; every protocol citation names an -11 heading. R3 reference targets the datatracker. Document History reset to a single -00 entry. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01GF34pBFY1fXuHBTFPMrqRN
In four-party access the auth token's iss is the AS, which did not mint sub, so a key on iss lets two person servers behind one AS collide. The person is identified by the person server named in ps and its sub, as decided for protocol -12 (#215). An AS querying the usage endpoint by a scope key names the person server with a new ps member. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01GF34pBFY1fXuHBTFPMrqRN
…et, delivery check Budget Exhaustion gains a Deferred Delivery subsection for refusals sent as a -11 202 that holds the invocation: nothing is reserved against the refused token while it is held, the invocation meters against the auth token on the completing poll, a completing token that does not fit gets another 202, a replay is not metered again, AAuth-Budget on the 202 reports what the 401 would, and shrink-and-retry abandons the pending URL. In four-party access the PS relays an AS's suggested_budget in its relayed error body, lowered to what the PS would itself accept. At Auth Token Delivery the PS checks the AS's budget against the budget parameter it sent; a failure is as_unreachable. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01GF34pBFY1fXuHBTFPMrqRN
|
71ce599 applies the decisions on the Budgets items. It builds on 641f0ad, which keys the ledger on
The Document History is still the single -00 entry. The build adds no new warnings. 🤖 Generated with Claude Code |
At Auth Token Delivery the PS now also rejects an AS-issued auth token that carries no budget claim when the PS sent a budget parameter, since the resource would otherwise apply its own default, which can exceed what the PS allowed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01GF34pBFY1fXuHBTFPMrqRN
Reviews
draft-hardt-aauth-budgets.mdagainst AAuth Protocol -11 and prepares it for its first datatracker submission as -00. Only the Budgets draft is touched. The settlement and allocation model is unchanged.Changes, with the -11 section behind each
Examples
presented_jtiwaspt-3ab910(a person token) whilebudget_consumednamed auth tokenat-71b9d0. A record is only carried when an auth token was presented, and that token is the onepresented_jtinames, sopresented_jtiis nowat-71b9d0. Itsiat/expmoved to after the auth token's issuance. Added a sentence saying which challenge the example is. (-11 §6.7.1)jtiis stated to be the value the resource token carries aspresented_jti. (-11 §6.7.1)tenantandmission_s256. The resource token example copies both from this token, which it can only do if the token carries them. (-11 §6.7.1, §9.4.1)Content-Digestand coverscontent-typeandcontent-digest. (-11 §11.3.3.1)202example addsCache-Control: no-store. (-11 §11.8)revocation_endpoint, with one sentence noting the base protocol recommends it for a resource that accepts person tokens and that Settlement depends on it. (-11 §11.2.4, §11.12)Restated rules that did not match -11
(iss, tenant, sub)lookup.(iss, sub)is the identifier andtenantis not part of it. (-11 §9.4.1, §13.10, §14.1)(iss, jti)". The request is now{jti, exp}with the issuer taken from the signer. Revocation happens at the resource, by the PS in three-party access. In four-party access the PS revokes the person token at the AS, and the AS revokes the auth tokens it issued against that token. A resource without an endpoint honors the token untilexp. (-11 §11.12.1, §11.12.2, §11.12.4)Flows -11 changed
401withSignature-Error: error=expired_jwt, per the family's Signature-Error rule. (-11 §7.9.1, §11.3.4)presented_token. The auth token issued against it expires no later than the exhausted one, so a step-up renews the allocation but not the lifetime. (-11 §7.2.1, §9.4.1, §7.1.3)202. The citation is now Revocation Response. (-11 §11.12.3)mission_s256. The PS, and the AS in four-party access, verify the resource token'smission_s256against the presented token's; the text previously said the PS "bound the resource token to the person token". (-11 §8.2.1, §6.7.2)jwks_urischeme,id= itsissuer,dwk= its metadata document), coveringcontent-type/content-digest. This replaces "exactly as a PS does at an ASauth_token_endpoint", which did not describe an AS caller. (-11 §11.3.2, §11.3.3.1)mission_s256. (-11 §8.2.1)Citations and naming
usage_endpointnames both callers, the PS and the AS.Submission prep
I-D.hardt-aauth-r3target is nowhttps://datatracker.ietf.org/doc/draft-hardt-aauth-r3. There are no other sibling references.date =line, so nothing was removed.Document History
The preamble said: "This document has not been submitted to the datatracker ... The log is reset at first submission, which becomes
draft-hardt-aauth-budgets-00." I did what it says:## Exploratory Changes {#exploratory-changes}section (every entry), and the trailing "written against draft-hardt-oauth-aauth-protocol-11" note.draft-hardt-aauth-budgets-00: "Initial submission, written against draft-hardt-oauth-aauth-protocol-11." The note's one fact is folded into that entry.archive/, links to#exploratory-changes.Needs a decision
budget_consumed.jtiduplicatespresented_jti. -11 binds every resource token to the token it was issued on, and the record only appears when that token is an auth token. The record could shrink toconsumedalone. Why One Record says "Thejtistays", but that was written withoutpresented_jtiin view. This PR only states that the two are equal.202deferred delivery (-11 §6.5.1). Budget Exhaustion is written for the401, but a -11 resource may deliverrequirement=auth-tokenas a202and hold the invocation. The draft needs either a rule requiring the401for budget refusals, or rules for:AAuth-Budgeton the202reports;insufficient-budgetshrink-and-retry path means abandoning the pending URL.suggested_budgetin four-party access. -11 §9.1.3 has the PS relay an AS terminal error in its own problem+json body, carrying only the AS'serrorvalue and status. Declining with Guidance lets the AS includesuggested_budget, but does not say whether the PS carries it to the agent, or lowers it to its own ceiling first.scopeis no broader than the resource token's. There is no parallel check that the AS'sbudgetstays within thebudgetparameter the PS sent and keepsunit/decimals. Under -11, a token failing such a check would be reported asas_unreachable.(iss, sub, aud). In four-party accessissis the AS, butsubis minted by the PS. Two PSes can mint the samesubfor different people behind one AS.(ps, sub, aud)would be unambiguous. The draft follows -11 as written; see the protocol item below.Found in the protocol spec (not changed here)
(iss, tenant, sub)identifies a user within an organization". This contradicts §9.4.1, §13.10 and §14.1, which saytenantis never part of the identifier.subis "unique withiniss", and §9.4.3 identifies the person by(iss, sub). In four-party accessissis the AS andsubis the PS's directed value, so uniqueness within the AS is not guaranteed across PSes.Content-DigestorSignature-Input, although body coverage is REQUIRED on both.Build
make draft-hardt-aauth-budgets.txt: mmark OK, xml2rfc OK. xml2rfc reports three warnings, andmainreports the same three: theconsensusattribute, one wide artwork, and the longSignature-Keyline in the authorization endpoint example. This PR adds no warnings.🤖 Generated with Claude Code
https://claude.ai/code/session_01GF34pBFY1fXuHBTFPMrqRN