mozilla / authenticator-rs

Rust library to interact with Security Keys, used by Firefox
https://crates.io/crates/authenticator
Mozilla Public License 2.0
275 stars 72 forks source link

Allow extension processing to depend on device info #311

Closed jschanck closed 1 year ago

jschanck commented 1 year ago

Some extensions need information from the FidoDevice that handled the request. For example, the hmac-secret extension uses the device <-> client shared secret. This PR adds a device input to finalize_result. I've also updated our credProps support to handle a quirk wrt CTAP 2.0 devices. (There's a wpt to check for the quirk handling that Firefox currently fails). And I've added an AuthenticatorAttachment field to results that indicates whether or not the response came from a platform authenticator.