Skip to content

Budgets: an omitted PS ceiling is indistinguishable from extension non-participation #122

Closed

Description

@joshuagay

Problem

In four-party access, the PS-to-AS budget parameter is optional (a99d353, line 545). When the Resource token carries a Budget and the PS omits that parameter, the AS must treat the Resource's Budget as the PS's ceiling (line 566).

That makes two materially different cases identical on the wire:

  1. The PS understands Budgets and deliberately grants the Resource's full offer.
  2. The PS does not implement or recognize the Budgets extension, ignores the Resource-token claim, and forwards the ordinary token request without a budget parameter.

In both cases the AS is required to issue against the Resource's full offer. The second case silently upgrades extension non-participation into the maximum Budget grant. This is especially surprising because the base protocol's extensibility posture tells recipients to ignore fields they do not recognize.

Example

The Resource token offers USD 10. A Budget-aware PS would grant USD 2. A PS that has not implemented this extension ignores the Budget claim and sends no budget parameter. The AS interprets the omission as an explicit USD 10 ceiling and may issue the full amount.

Suggested direction

Require an affirmative PS value in four-party access: when a Resource token contains budget, the AS may include a Budget in its Auth token only when the PS-to-AS request also contains budget. Omission should produce no Budget grant or a defined error, rather than accepting the Resource's offer.

That preserves ordinary extension negotiation: a PS that does not understand Budgets cannot accidentally authorize one, while a PS that wants to grant the full offer can echo it explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    budgets

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions