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
{{ message }}
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
Hi all! Your library has been very helpful to me in understanding webauthn. I've been trying to implement webauthn as well as make sure all the steps for registering a credential are followed ("https://www.w3.org/TR/webauthn/#sctn-registering-a-new-credential"). Currently I am on step 16 "Verify that the "alg" parameter in the credential public key in authData matches the alg attribute of one of the items in options.pubKeyCredParams." I am having difficulty getting the "alg" parameter in credential public key. I noticed that in protocol/authenticator.go:46 that the credential public key is kept as bytes and not given a struct with fields. Should CredentialPublicKey have a corresponding struct?
I also noticed that the "alg" parameter in attestation statements is used for verification, such as in attestation_packed.go. Does this do what I am trying to do?
Thanks so much! :)
The text was updated successfully, but these errors were encountered:
Check PublicKeyData struct protocol/webauthncose/webauthncose.go:27 and the rest of what's going on in that file, I think that will get you what you're looking for.
Hi all! Your library has been very helpful to me in understanding webauthn. I've been trying to implement webauthn as well as make sure all the steps for registering a credential are followed ("https://www.w3.org/TR/webauthn/#sctn-registering-a-new-credential"). Currently I am on step 16 "Verify that the "alg" parameter in the credential public key in authData matches the alg attribute of one of the items in options.pubKeyCredParams." I am having difficulty getting the "alg" parameter in credential public key. I noticed that in protocol/authenticator.go:46 that the credential public key is kept as bytes and not given a struct with fields. Should CredentialPublicKey have a corresponding struct?
I also noticed that the "alg" parameter in attestation statements is used for verification, such as in attestation_packed.go. Does this do what I am trying to do?
Thanks so much! :)
The text was updated successfully, but these errors were encountered: