-
Hi, I am able to register the credentials with libfido2 and webAuthn. I am getting the public key but when using the same for assertion I am getting the following error- I am getting following logs- cbor_decode_assert_authdata: buf=0x7fc52c0066f0, len=37 fido_check_flags: flags=05 Error Message : "fido_assert_verify: FIDO_ERR_INVALID_SIG" Error code: -6 This is the response I am getting from webAuthn and I am able to set clientDataHash, authData and signature- The public key is in the following format- The same public key can be used for assertion via similar implementation in NodeJS. Any help is much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi, I cannot seem to decode your public key. Are you sure it's a correctly encoded, valid, public key? How are you passing it to libfido2?
|
Beta Was this translation helpful? Give feedback.
It looks like you're calling
fido_assert_set_clientdata_hash()
with the contents of theclientDataJSON
as referenced above. I would assume this is incorrect, instead callfido_assert_set_clientdata()
(or hash the contents ofclientDataJSON
before callingfido_assert_set_clientdata_hash()
).