Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareSignatureAssertion ¶
func PrepareSignatureAssertion(wa *webauthn.WebAuthn, dataHash []byte, user webauthn.User) (*protocol.CredentialAssertion, error)
PrepareSignatureAssertion prepares data for credentials.get() on browser. Use it only if you want your own implementation of sign requests.
Types ¶
type Signature ¶
type Signature struct { AuthenticatorData protocol.URLEncodedBase64 `json:"a"` ClientData protocol.URLEncodedBase64 `json:"c"` SignatureData protocol.URLEncodedBase64 `json:"s"` }
Signature represents document hash signature object. Unlike normal ECDSA signature, it also carries some extra information (AuthenticatorData and ClientData), which is necessary to be hashed together with user data to check correctness of WebAuthn signature.
func ParseSignatureCredentialResponse ¶
ParseSignatureCredentialResponse creates signature from CredentialRequestResponse.
Click to show internal directories.
Click to hide internal directories.