Skip to content

Rename resource token claim person_token_jti to presented_jti (dual-emit) - #23

Merged
dickhardt merged 2 commits into
mainfrom
presented-jti-rename
Sep 1, 2026
Merged

Rename resource token claim person_token_jti to presented_jti (dual-emit)#23
dickhardt merged 2 commits into
mainfrom
presented-jti-rename

Conversation

@dickhardt

Copy link
Copy Markdown
Contributor

Spec issue dickhardt/AAuth#95 renamed the resource token claim person_token_jtipresented_jti (same value: the jti of the person token whose verification established ps/sub).

  • @aauth/resource 2.1.0: createResourceToken emits both presented_jti (canonical) and person_token_jti (deprecated alias) so pre-rename PSes keep working through the transition.
  • Readers/comments/docs updated; e2e forge knob renamed (forgePresentedJti).
  • No runtime reader of the claim exists in this repo — the PS is the reader. Wallet already accepts either name (hellocoop/Wallet#4250); mockin's -11 line gets its fallback separately.

Full monorepo: 739 tests passing incl. e2e against @hellocoop/mockin@2.0.0 (a legacy-only reader) — proving the dual-emit keeps old PSes working.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hb3JdCGpyWkWVYsH51j1yU

dickhardt and others added 2 commits September 1, 2026 20:58
…ssue #95)

The spec renamed the claim: the old name asserted the presented credential
was a person token, which is false on step-up and per-call challenges. The
value is unchanged — the jti of the person token whose verification
established ps and sub.

Transition strategy: createResourceToken dual-emits presented_jti
(canonical) and person_token_jti (deprecated alias, same value) so PSes
that still read the old name keep working; the alias goes away once the
fleet's PSes read the new one. mockin 2.0.0 still resolves by the legacy
name, and the e2e suite passing against it is the proof the dual-emit
holds. No package in this repo reads the claim at runtime — the PS side
lives elsewhere — so there is no accept-either read path to add here.

Comments, docs and the e2e mint knob (forgePersonTokenJti →
forgePresentedJti) now name presented_jti as canonical.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hb3JdCGpyWkWVYsH51j1yU
@dickhardt
dickhardt merged commit 7bd31a5 into main Sep 1, 2026
1 check passed
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