-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set attestation object containing CBOR encoded authData, fmt and attStmt #782
Set attestation object containing CBOR encoded authData, fmt and attStmt #782
Conversation
Assuming this change will be merged, any idea when the next release is? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed a few additional tweaks on top of your changes, let me know if anything looks off. 🙂
Assuming this change will be merged, any idea when the next release is?
There's no exact dates planned yet. It's likely it'd be sometime this spring.
@LDVG is there anything needed that is blocking merge with main? |
1ad623c
to
4e7a885
Compare
Apologies for the delays. There shouldn't be much more needed to get this through, though a final review may take a little bit longer. I squashed some of the intermediate commits, I hope that is fine with you. (note that the currently failing pipeline appears unrelated to these changes) |
New routines to set attestation object containing CBOR encoded authData, fmt and attStmt.
4e7a885
to
f82ea7f
Compare
Note (mostly to myself): Pushed a tentative fuzzer harness; needs seed corpora. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left some comments; nothing major; LGTM
b7e5fbd
to
3fe9f9e
Compare
Seed corpora updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Applications using Javascript WebAuthn APIs to communicate with FIDO2 devices get CBOR encoded attestation object containing authData, fmt and attStmt; more details about the JS API are given at MDN. Since there are no straight ways to set this value, I have updated libfido to set internal values after parsing the CBOR encoded attestation-object.
This will mean that the applications using libfido doesn't have to handle CBOR data at all, just like how other high level libraries in other languages behave.
Summary of changes:
fido_cred_set_attobj
API is added to set attestation object containing CBOR encoded authData, fmt and attStmtRelevant issue #749 .