Yubico / python-fido2

Provides library functionality for FIDO 2.0, including communication with a device over USB.
BSD 2-Clause "Simplified" License
432 stars 109 forks source link

missing 1 required positional argument: 'extensions' #226

Closed kiennd closed 3 months ago

kiennd commented 6 months ago

I ran credential.py in example folder got error:

Use USB HID channel. Traceback (most recent call last): File "/data/fido2-test1/credential.py", line 79, in client = Fido2Client(dev, "https://example.com", user_interaction=CliInteraction()) File "/data/fido2-test1/venv/lib/python3.10/site-packages/fido2/client.py", line 734, in init self._backend: _ClientBackend = _Ctap2ClientBackend( File "/data/fido2-test1/venv/lib/python3.10/site-packages/fido2/client.py", line 447, in init self.ctap2 = Ctap2(device) File "/data/fido2-test1/venv/lib/python3.10/site-packages/fido2/ctap2/base.py", line 208, in init self._info = self.get_info() File "/data/fido2-test1/venv/lib/python3.10/site-packages/fido2/ctap2/base.py", line 262, in get_info return Info.from_dict(self.send_cbor(Ctap2.CMD.GET_INFO)) File "/data/fido2-test1/venv/lib/python3.10/site-packages/fido2/utils.py", line 287, in from_dict return cls(**kwargs) TypeError: Info.init() missing 1 required positional argument: 'extensions'

dainnilsson commented 3 months ago

This will be fixed in the next version! Out of curiosity, what is the security key type you are using where this occurs?