Skip to content

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

Draft
AlfioEmanueleFresta wants to merge 1 commit into
masterfrom
fix/credprotect-feature-detect
Draft

fix(ctap2): feature-detect credProtect from getInfo#273
AlfioEmanueleFresta wants to merge 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.

…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.
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