Skip to content

feat: binding semantics hardening#299

Open
brendanjryan wants to merge 1 commit intobrendan/verified-context-apifrom
brendan/binding-semantics-hardening
Open

feat: binding semantics hardening#299
brendanjryan wants to merge 1 commit intobrendan/verified-context-apifrom
brendan/binding-semantics-hardening

Conversation

@brendanjryan
Copy link
Copy Markdown
Collaborator

@brendanjryan brendanjryan commented Apr 6, 2026

Replaces partial scope check (6 hardcoded fields) with full canonical request + opaque comparison via getChallengeScopeMismatch(). Strengthens compose() dispatch to match. Removes ~75 lines of dead normalization code.

Stack: #298#299

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 6, 2026

Open in StackBlitz

npm i https://pkg.pr.new/mppx@299

commit: 099c1ba

@brendanjryan brendanjryan force-pushed the brendan/binding-semantics-hardening branch from b52e9e6 to fa9a919 Compare April 6, 2026 21:58
@brendanjryan brendanjryan force-pushed the brendan/binding-semantics-hardening branch from fa9a919 to 7e96ff5 Compare April 6, 2026 22:23
@brendanjryan brendanjryan force-pushed the brendan/verified-context-api branch from 36bd909 to 46cfbf0 Compare April 6, 2026 22:23
@brendanjryan brendanjryan force-pushed the brendan/binding-semantics-hardening branch from 7e96ff5 to f0c0fc4 Compare April 6, 2026 22:48
@brendanjryan brendanjryan force-pushed the brendan/verified-context-api branch 2 times, most recently from a229719 to 2640531 Compare April 6, 2026 22:54
@brendanjryan brendanjryan force-pushed the brendan/binding-semantics-hardening branch from f0c0fc4 to c526ea6 Compare April 6, 2026 22:54
Replace partial scope check (method/intent/realm + 6 selected request
fields) with full stable challenge scope comparison: method, intent,
realm, full canonical request, and opaque.

Closes gap where credentials differing only in non-binding request
fields or opaque could pass scope verification. Expires remains a
separate freshness check; digest binding deferred to PR 3.
@brendanjryan brendanjryan force-pushed the brendan/binding-semantics-hardening branch from c526ea6 to 099c1ba Compare April 7, 2026 01:06
@brendanjryan brendanjryan force-pushed the brendan/verified-context-api branch from 2640531 to 1b0697b Compare April 7, 2026 01:06
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