Skip to content

fix(authnr-config): gate config subcommands on getInfo capabilities#291

Merged
AlfioEmanueleFresta merged 1 commit into
masterfrom
fix/authenticator-config-gating
Jun 21, 2026
Merged

fix(authnr-config): gate config subcommands on getInfo capabilities#291
AlfioEmanueleFresta merged 1 commit into
masterfrom
fix/authenticator-config-gating

Conversation

@AlfioEmanueleFresta

Copy link
Copy Markdown
Member

Authenticator configuration subcommands were sent without first confirming the device advertises support, and the minimum PIN length RP list was sent without a bound. Each subcommand now checks the relevant getInfo capability before being sent, and the RP list is bounded to the device limit. This avoids predictable rejections and respects the authenticator declared limits.

@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as ready for review June 20, 2026 14:25
Each AuthenticatorConfig method now reads getInfo at entry and gates on
capabilities before any UV round-trip, returning a clean platform error
instead of relying on device rejection.

toggle_always_uv is gated on the alwaysUv option only, not setMinPINLength.
The two are independent subcommand options per CTAP 2.1 6.2.5 and the
existing HID example treats them separately.
@AlfioEmanueleFresta AlfioEmanueleFresta force-pushed the fix/authenticator-config-gating branch from 35c995d to 5376aac Compare June 21, 2026 15:06
@AlfioEmanueleFresta AlfioEmanueleFresta merged commit ac426c2 into master Jun 21, 2026
7 checks passed
@AlfioEmanueleFresta AlfioEmanueleFresta deleted the fix/authenticator-config-gating branch June 21, 2026 15:06
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