Skip to content

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

Merged
AlfioEmanueleFresta merged 2 commits into
masterfrom
feat/pcmr-2-store-trait
Jun 7, 2026
Merged

feat(pin): add persistent token store trait and HID plumbing (2/5)#232
AlfioEmanueleFresta merged 2 commits into
masterfrom
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 2079b4a to 28cfe9f Compare June 7, 2026 14:55
@AlfioEmanueleFresta AlfioEmanueleFresta merged commit 7ed48b9 into master Jun 7, 2026
5 checks passed
@AlfioEmanueleFresta AlfioEmanueleFresta deleted the feat/pcmr-2-store-trait branch June 7, 2026 14:55
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