Yubico / python-fido2

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

fido2.cbor can not parse cbor-web output #157

Closed TheSpacyCat closed 1 year ago

TheSpacyCat commented 2 years ago

Hello!

We recently wanted to replace our old and unmaintained frontend cbor implementation with cbor-web. Sadly, fido2.cbor is unable to parse its output, even if cbor-web is configured to not include its metadata. All is fine and well when we replace fido2.cbor with cbor2, but in the interest of keeping our Pipfile lean, I wanted to ask whether there are any plans to extend difo2.cbor?

dainnilsson commented 2 years ago

We don't have plans to extend fido2.cbor beyond what is required by the library itself. That said, I'd be interested in what is missing that cbor-web is using.

On a different note, I'd also be interested in what you are using CBOR on the client side for. If it's only for (de-)serialization of the WebAuthn data types, then you may want to consider using JSON for this instead. See #146 for details. Our server example (https://github.com/Yubico/python-fido2/tree/main/examples/server) has been updated on main to use this instead of CBOR.

This functionality will be included in python-fido2 1.1 which is planned to be released in October.

dainnilsson commented 1 year ago

Closing due to lack of response, please re-open or comment if there is more to discuss.