Skip to content

feat(pin): add persistent token store trait and HID plumbing (2/5)#232

Draft
AlfioEmanueleFresta wants to merge 2 commits into
feat/pcmr-1-permission-and-renamefrom
feat/pcmr-2-store-trait
Draft

feat(pin): add persistent token store trait and HID plumbing (2/5)#232
AlfioEmanueleFresta wants to merge 2 commits into
feat/pcmr-1-permission-and-renamefrom
feat/pcmr-2-store-trait

Conversation

@AlfioEmanueleFresta
Copy link
Copy Markdown
Member

@AlfioEmanueleFresta AlfioEmanueleFresta commented May 30, 2026

Part 2 of 5 in a stack: #231, #232 (this), #233, #234, #235

This stack adds support for persistent pinUvAuthTokens (the CTAP 2.2+ pcmr permission), so a credential manager can list passkeys without re-prompting for the PIN on every launch or replug. Read-only credential management only.

This PR

The storage abstraction, with no flow changes yet:

  • Adds a caller-supplied store trait for persistent tokens, plus an in-memory implementation for tests and single-process use.
  • Wires the store through the USB (HID) channel.
  • Documents the security contract. A persistent token is a long-lived secret, so production callers must provide durable, access-controlled storage. The library ships only the in-memory default and does not pick a backend.

@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the feat/pcmr-2-store-trait branch from fbdc3cf to acca773 Compare May 30, 2026 17:24
@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the feat/pcmr-1-permission-and-rename branch from 9425990 to 1e56bbd Compare May 30, 2026 17:24
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