authenticator

package
v0.1.48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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.
	AttStatement map[string]interface{} `json:"attStmt,omitempty"`
}

AttestationObject is WebAuthn way to present Attestations: https://www.w3.org/TR/webauthn/#sctn-attestation https://www.w3.org/TR/webauthn/#attestation-object

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL