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

Add credBlob-extension #329

Open msirringhaus opened 9 months ago

msirringhaus commented 9 months ago

It is a bit annoying that the credBlob-extension can be, depending on the situation, a boolean (MakeCredentialResponse, GetAssertion) or a ByteBuf (MakeCredential, GetAssertionResponse), but we use the same Extension-struct everywhere. I thus opted for a not completely type-safe enum-API for the credBlob-extensions, even though this means theoretically, that a user could 'use it wrong', and send a ByteBuf into a GetAssertion-request. The token should in most cases error out, though.