Skip to content

Budgets: the budget object has no rule for members a recipient does not recognize #286

Open

Description

@joshuagay

draft-hardt-aauth-budgets.md at 70d6737:

  • L332 (The Budget Object): "One shape appears in every position — the authorization endpoint request, the resource token, the PS-to-AS token request, and the auth token:"
  • L344-L346 (The Budget Object): amount, unit and decimals, each REQUIRED
  • L627 (AAuth-Budget Response Header): "Recipients MUST ignore members they do not recognize."
  • L1098 (Errors): "invalid_budget | 400 | PS and AS auth token endpoints | The resource token's budget.decimals disagrees with the value declared for that unit in the resource's budget_units metadata, or the object is otherwise malformed"

The header says what a recipient does with a member it does not recognize. The budget object does not. A resource token whose budget carries an extra member is accepted by one PS and refused by another as invalid_budget, so no extension of the object can be deployed, and a resource cannot tell which PSes will accept it.

Ask: Say which, in The Budget Object. Either "A recipient MUST ignore members of a budget object it does not recognize", or, if a later member may change what amount means and so cannot safely be ignored, "A recipient MUST reject a budget object with a member it does not recognize."

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions