request

package
v0.0.0-...-7527e3a Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodedAssertionData

type DecodedAssertionData struct {
	Flags            byte
	Counter          []byte
	RawAssertionData []byte
	RPIDHash         string
	Signature        []byte
}

DecodedAssertionData is the decoded assertion object's data

type DecodedAttestationStatement

type DecodedAttestationStatement struct {
	// The attestation certificate. This helps us identify the authenticator
	Certificate *x509.Certificate
	Signature   []byte
}

DecodedAttestationStatement - The AttStmt returned by the authenticator's credential response.

type DecodedAuthData

type DecodedAuthData struct {
	Flags        []byte
	Counter      []byte
	RPIDHash     string
	AAGUID       []byte
	CredID       []byte
	PubKey       models.PublicKey
	Format       string
	AttStatement DecodedAttestationStatement
}

DecodedAuthData - The AuthData returned by the authenticator's credential response.

type DecodedClientData

type DecodedClientData struct {
	// The raw base 64 encoded ClientDataJSON
	RawClientData string `codec:"-" json:"omitempty"`
	// The challenge we originally provided to the client for the authenticator
	Challenge string `codec:"challenge" json:"challenge"`
	// The Hash Algorithm used to create the credential
	HashAlgorithm string `codec:"hashAlgorithm" json:"hashAlgorithm"`
	// The origin URL of the authentication request
	Origin string `codec:"origin" json:"origin"`
	// Whether the request was for creating a credential or getting a credential
	ActionType string `codec:"type" json:"type"`
}

DecodedClientData - Decoded ClientDataJSON

type EncodedAttestationStatement

type EncodedAttestationStatement struct {
	// The attesation certificate in byte form. Returned to us as an array
	// of byte form certs since there may be more than one.
	X509Cert  [][]byte `codec:"x5c"`
	Signature []byte   `codec:"sig"`
}

EncodedAttestationStatement is the authenticator's attestation certificate

type EncodedAuthData

type EncodedAuthData struct {
	AuthData     []byte                      `codec:"authData"`
	Format       string                      `codec:"fmt"`
	AttStatement EncodedAttestationStatement `codec:"attStmt, omitempty"`
}

EncodedAuthData is a CBOR encoded data structure returned to us by the client/authenticator. The AttStatement may be empty depending on format

Jump to

Keyboard shortcuts

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