Skip to content

feat(pin): acquire and reuse persistent tokens via encIdentifier recognition (3/5)#233

Merged
AlfioEmanueleFresta merged 4 commits into
masterfrom
feat/pcmr-3-acquisition
Jun 7, 2026
Merged

feat(pin): acquire and reuse persistent tokens via encIdentifier recognition (3/5)#233
AlfioEmanueleFresta merged 4 commits into
masterfrom
feat/pcmr-3-acquisition

Conversation

@AlfioEmanueleFresta

@AlfioEmanueleFresta AlfioEmanueleFresta commented May 30, 2026

Copy link
Copy Markdown
Member

Part 3 of 5 in a stack: #231, #232, #233 (this), #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 behavioural core:

  • Read-only credential management now requests a persistent token when the authenticator advertises support and a store is configured. Writes keep using the ordinary token.
  • Recognises a previously seen authenticator and reuses its stored token, so no PIN prompt is needed.
  • When nothing matches, it mints a new token and stores it for next time. Persistent tokens are kept out of the ordinary in-session cache.

@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the feat/pcmr-2-store-trait branch from 723009c to fbdc3cf Compare May 30, 2026 11:26
@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the feat/pcmr-3-acquisition branch 2 times, most recently from 0fee3aa to b16de46 Compare May 30, 2026 17:24
@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-3-acquisition branch from b16de46 to e36c0cf Compare May 31, 2026 21:07
@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the feat/pcmr-2-store-trait branch from acca773 to bdc295c Compare May 31, 2026 21:07
@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the feat/pcmr-3-acquisition branch from e36c0cf to 47a76d0 Compare June 6, 2026 20:54
@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the feat/pcmr-2-store-trait branch from bdc295c to 2079b4a Compare June 6, 2026 20:54
@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as ready for review June 6, 2026 20:57
@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the feat/pcmr-2-store-trait branch from 2079b4a to 28cfe9f Compare June 7, 2026 14:55
@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the feat/pcmr-3-acquisition branch from 47a76d0 to 682e81f Compare June 7, 2026 14:55
Base automatically changed from feat/pcmr-2-store-trait to master June 7, 2026 14:55
@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the feat/pcmr-3-acquisition branch from 682e81f to a680927 Compare June 7, 2026 14:56
@AlfioEmanueleFresta AlfioEmanueleFresta merged commit 1bba900 into master Jun 7, 2026
5 checks passed
@AlfioEmanueleFresta AlfioEmanueleFresta deleted the feat/pcmr-3-acquisition branch June 7, 2026 14:56
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