Skip to content

Add binding_hash conformance vectors - #611

Open
Math1987 wants to merge 1 commit into
openid:mainfrom
Math1987:codex/authzen-binding-hash-vectors
Open

Add binding_hash conformance vectors#611
Math1987 wants to merge 1 commit into
openid:mainfrom
Math1987:codex/authzen-binding-hash-vectors

Conversation

@Math1987

@Math1987 Math1987 commented Aug 7, 2026

Copy link
Copy Markdown

Summary

  • add seven byte-identical known-answer vectors for the Access Request Approval binding_hash construction
  • cover single-item and bulk inputs, subject.properties.act removal, binding_context_members selection, absent versus null, JCS number serialization, and array/item ordering
  • add a dependency-free Node verifier and a Make target
  • link the non-normative vector corpus from the Binding Token Integrity section

Closes #556

Validation

  • node profiles/authzen-access-request-approval/test-vectors/verify-binding-hash-vectors.mjs
  • make -C profiles/authzen-access-request-approval test-vectors
  • byte comparison against canonicalize@3.0.0
  • independent Python comparison of canonical bytes, SHA-256 hex, and unpadded base64url digests
  • git diff --check

IPR

The OpenID Foundation Contribution Agreement has been signed and submitted.

@Math1987

Copy link
Copy Markdown
Author

Hi @alexolivier,

I’m following up on these binding_hash conformance vectors for the Access Request and Approval Profile. The PR remains limited to informational vectors, a dependency free verifier, and the related documentation link. I would be glad to make any changes needed for review.

@alexolivier

Copy link
Copy Markdown
Collaborator

Hey, thanks for the additions. We don't really have a precedent of having these scripts being referenced from a spec before. So I'm not sure how we approach this, given we don't want a published spec to point at something that can move if it just sits in a Git repo.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conformance vectors for binding_hash (JCS + SHA-256)

2 participants