attestation

package
v0.0.0-...-68e1928 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const APPLE_ROOT_CERT = `` /* 797-byte string literal not displayed */

Variables

View Source
var TimeNow = time.Now

TimeNow is an indirection to allow tests to replace the current time when verifying attestation certificates

Functions

This section is empty.

Types

type AttestationObject

type AttestationObject struct {
	AuthData     authenticator.AuthenticatorData
	RawAuthData  []byte                 `json:"authData"`
	Format       string                 `json:"fmt"`
	AttStatement map[string]interface{} `json:"attStmt,omitempty"`
}

type AuthenticatorAttestationResponse

type AuthenticatorAttestationResponse struct {
	ClientData        utils.URLEncodedBase64 `json:"clientData"`
	KeyID             string                 `json:"keyID"`
	AttestationObject utils.URLEncodedBase64 `json:"attestationObject"`
}

func (*AuthenticatorAttestationResponse) Verify

func (aar *AuthenticatorAttestationResponse) Verify(appID string, production bool) ([]byte, []byte, error)

Jump to

Keyboard shortcuts

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