Skip to content

fix(ctap2): feature-detect credProtect from getInfo#273

Merged
AlfioEmanueleFresta merged 1 commit into
masterfrom
fix/credprotect-feature-detect
Jun 19, 2026
Merged

fix(ctap2): feature-detect credProtect from getInfo#273
AlfioEmanueleFresta merged 1 commit into
masterfrom
fix/credprotect-feature-detect

Conversation

@AlfioEmanueleFresta

Copy link
Copy Markdown
Member

When a relying party requires a credential protection policy, the client must refuse an authenticator that cannot honor it. The check looked at user verification state, which says nothing about credProtect support. This feature-detects credProtect from the authenticator getInfo and enforces the policy against that.

Closes #253.

@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as ready for review June 16, 2026 18:30
…forcing policy

The enforcement gate keyed off is_uv_protected, which reports whether a PIN or built-in UV is configured rather than whether the authenticator implements credProtect. Detect the extension from the getInfo extensions array instead. This refuses authenticators that would silently drop an enforced policy and stops rejecting credProtect-capable authenticators that have no PIN or UV set yet.
@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the fix/credprotect-feature-detect branch from 23216b6 to 06793c6 Compare June 19, 2026 21:31
@AlfioEmanueleFresta AlfioEmanueleFresta merged commit 958894a into master Jun 19, 2026
5 checks passed
@AlfioEmanueleFresta AlfioEmanueleFresta deleted the fix/credprotect-feature-detect branch June 19, 2026 21:31
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.

fix(ctap2): feature-detect credProtect from getInfo, not UV state

1 participant