We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3594d0d commit c85f053Copy full SHA for c85f053
fido2/ctap2/config.py
@@ -77,10 +77,14 @@ def __init__(
77
if pin_uv_protocol and pin_uv_token
78
else None
79
)
80
+ self._subcommands = self.ctap.info.authenticator_config_commands
81
# TODO: Implement feature detection for pin_complexity_policy,
82
# which is currently ambiguous in the spec.
83
84
def _call(self, sub_cmd, params=None):
85
+ if self._subcommands is not None and sub_cmd not in self._subcommands:
86
+ raise ValueError(f"Config command {sub_cmd} not supported by Authenticator")
87
+
88
if self.pin_uv:
89
msg = b"\xff" * 32 + b"\x0d" + struct.pack("<B", sub_cmd)
90
if params is not None:
0 commit comments