You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was interested in using the standard to implement both passwordless login as well as usernameless login, so I created a demo for it which allowed both forms: https://github.com/MxBlu/fido-poc
Unfortunately I've found that when requiring a resident key, the response cannot be parsed by the server using attestationResult():
Error: couldn't parse authenticator.authData.attestationData CBOR: Error: Data read, but end of buffer not reached
at PublicKey.fromCose (\x\fido-poc\backend\node_modules\fido2-lib\dist\main.cjs:1010:10)
at parseAuthenticatorData (\x\fido-poc\backend\node_modules\fido2-lib\dist\main.cjs:2898:19)
at parseAuthnrAttestationResponse (\x\fido-poc\backend\node_modules\fido2-lib\dist\main.cjs:2845:12)
at Fido2AttestationResult.parse (\x\fido-poc\backend\node_modules\fido2-lib\dist\main.cjs:3035:27)
at async Fido2AttestationResult.create (\x\fido-poc\backend\node_modules\fido2-lib\dist\main.cjs:3004:3)
at async Function.create (\x\fido-poc\backend\node_modules\fido2-lib\dist\main.cjs:3050:10)
at async Fido2Lib.attestationResult (\x\fido-poc\backend\node_modules\fido2-lib\dist\main.cjs:5465:10)
I can debug JS code, but decoding the CBOR response is out of my expertise sadly. Any insight would be much appreciated!
The issue can be reproduced with my demo by setting FIDO2_REQUIRE_RESIDENT_KEY = true in backend/src/constants.ts.
Options object passed to nagivator.credentials.create():
Hi there,
I was interested in using the standard to implement both passwordless login as well as usernameless login, so I created a demo for it which allowed both forms: https://github.com/MxBlu/fido-poc
Unfortunately I've found that when requiring a resident key, the response cannot be parsed by the server using
attestationResult()
:I can debug JS code, but decoding the CBOR response is out of my expertise sadly. Any insight would be much appreciated!
The issue can be reproduced with my demo by setting
FIDO2_REQUIRE_RESIDENT_KEY = true
inbackend/src/constants.ts
.Options object passed to
nagivator.credentials.create()
:Environment details:
The text was updated successfully, but these errors were encountered: