Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalData ¶
func MarshalData(ad *protocol.AuthenticatorData) (out []byte, err error)
MarshalData marshals authenticator data to byte format specified in: https://www.w3.org/TR/webauthn/#sctn-authenticator-data
func TryMarshalData ¶
func TryMarshalData(data *protocol.AuthenticatorData) []byte
TryMarshalData is MarshalData convenience wrapper
Types ¶
type AttestationObject ¶
type AttestationObject struct {
// The byteform version of the authenticator data, used in part for signature validation
RawAuthData []byte `json:"authData"`
// The format of the Attestation data.
Format string `json:"fmt"`
// The attestation statement data sent back if attestation is requested.
// According to w3c spec in impty cases following should be: {}
AttStatement map[string]interface{} `json:"attStmt"`
}
AttestationObject is WebAuthn way to present Attestations: https://www.w3.org/TR/webauthn/#sctn-attestation https://www.w3.org/TR/webauthn/#attestation-object
Click to show internal directories.
Click to hide internal directories.