webauthn

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationExtensionsLargeBlobInputs

type AuthenticationExtensionsLargeBlobInputs struct {
	Support extension.LargeBlobSupport `cbor:"support"`
	Read    bool                       `cbor:"read"`
	Write   []byte                     `cbor:"write"`
}

type AuthenticationExtensionsLargeBlobOutputs

type AuthenticationExtensionsLargeBlobOutputs struct {
	Supported bool   `cbor:"supported"`
	Blob      []byte `cbor:"blob"`
	Written   bool   `cbor:"written"`
}

type AuthenticationExtensionsPRFInputs

type AuthenticationExtensionsPRFInputs struct {
	Eval             *AuthenticationExtensionsPRFValues           `cbor:"eval,omitempty" json:"eval,omitempty"`
	EvalByCredential map[string]AuthenticationExtensionsPRFValues `cbor:"evalByCredential,omitempty" json:"evalByCredential,omitempty"`
}

type AuthenticationExtensionsPRFOutputs

type AuthenticationExtensionsPRFOutputs struct {
	Enabled bool                              `cbor:"enabled"`
	Results AuthenticationExtensionsPRFValues `cbor:"results"`
}

type AuthenticationExtensionsPRFValues

type AuthenticationExtensionsPRFValues struct {
	First  []byte `cbor:"first" json:"first"`
	Second []byte `cbor:"second,omitempty" json:"second,omitempty"`
}

type AuthenticationExtensionsPaymentInputs

type AuthenticationExtensionsPaymentInputs struct {
	IsPayment                    bool                                       `cbor:"payment"`
	BrowserBoundPubKeyCredParams []credential.PublicKeyCredentialParameters `cbor:"browserBoundPubKeyCredParams"`

	RPID                 string                       `cbor:"rpId"`
	TopOrigin            string                       `cbor:"topOrigin"`
	PayeeName            string                       `cbor:"payeeName"`
	PayeeOrigin          string                       `cbor:"payeeOrigin"`
	PaymentEntitiesLogos []PaymentEntityLogo          `cbor:"paymentEntitiesLogos"`
	Total                *PaymentCurrencyAmount       `cbor:"total"`
	Instrument           *PaymentCredentialInstrument `cbor:"instrument"`
}

type AuthenticationExtensionsPaymentOutputs

type AuthenticationExtensionsPaymentOutputs struct {
	BrowserBoundSignature *BrowserBoundSignature `cbor:"browserBoundSignature,omitempty"`
}

type BrowserBoundSignature

type BrowserBoundSignature struct {
	Signature []byte `cbor:"signature" json:"signature"`
}

type CreateCredentialBlobInputs

type CreateCredentialBlobInputs struct {
	CredBlob []byte `cbor:"credBlob"`
}

type CreateCredentialBlobOutputs

type CreateCredentialBlobOutputs struct {
	CredBlob bool `cbor:"credBlob"`
}

type CreateCredentialPropertiesInputs

type CreateCredentialPropertiesInputs struct {
	CredentialProperties bool `cbor:"credProps"`
}

type CreateCredentialPropertiesOutputs

type CreateCredentialPropertiesOutputs struct {
	CredentialProperties CredentialPropertiesOutput `cbor:"credProps"`
}

type CreateCredentialProtectionInputs

type CreateCredentialProtectionInputs struct {
	CredentialProtectionPolicy        extension.CredentialProtectionPolicy `cbor:"credentialProtectionPolicy"`
	EnforceCredentialProtectionPolicy bool                                 `cbor:"enforceCredentialProtectionPolicy"`
}

type CreateHMACSecretInputs

type CreateHMACSecretInputs struct {
	HMACCreateSecret bool `cbor:"hmacCreateSecret"`
}

type CreateHMACSecretMCInputs

type CreateHMACSecretMCInputs struct {
	HMACGetSecret HMACGetSecretInput `cbor:"hmacGetSecret"`
}

type CreateHMACSecretMCOutputs

type CreateHMACSecretMCOutputs struct {
	HMACGetSecret HMACGetSecretOutput `cbor:"hmacGetSecret"`
}

type CreateHMACSecretOutputs

type CreateHMACSecretOutputs struct {
	HMACCreateSecret bool `cbor:"hmacCreateSecret"`
}

type CreateMinPinLengthInputs

type CreateMinPinLengthInputs struct {
	MinPinLength bool `cbor:"minPinLength"`
}

type CreatePinComplexityPolicyInputs

type CreatePinComplexityPolicyInputs struct {
	PinComplexityPolicy bool `cbor:"pinComplexityPolicy"`
}

type CredentialPropertiesOutput

type CredentialPropertiesOutput struct {
	ResidentKey bool `cbor:"rk"`
}

type GetAuthenticationExtensionsClientInputs

type GetAuthenticationExtensionsClientInputs struct {
	*GetCredentialBlobInputs
	*GetHMACSecretInputs
	*LargeBlobInputs
	*PRFInputs
}

type GetCredentialBlobInputs

type GetCredentialBlobInputs struct {
	GetCredBlob bool `cbor:"getCredBlob"`
}

type GetCredentialBlobOutputs

type GetCredentialBlobOutputs struct {
	GetCredBlob []byte `cbor:"getCredBlob"`
}

type GetHMACSecretInputs

type GetHMACSecretInputs struct {
	HMACGetSecret HMACGetSecretInput `cbor:"hmacGetSecret"`
}

type GetHMACSecretOutputs

type GetHMACSecretOutputs struct {
	HMACGetSecret HMACGetSecretOutput `cbor:"hmacGetSecret"`
}

type HMACGetSecretInput

type HMACGetSecretInput struct {
	Salt1 []byte `cbor:"salt1"`
	Salt2 []byte `cbor:"salt2,omitempty"`
}

type HMACGetSecretOutput

type HMACGetSecretOutput struct {
	Output1 []byte `cbor:"output1"`
	Output2 []byte `cbor:"output2,omitempty"`
}

type LargeBlobInputs

type LargeBlobInputs struct {
	LargeBlob AuthenticationExtensionsLargeBlobInputs `cbor:"largeBlob"`
}

type LargeBlobOutputs

type LargeBlobOutputs struct {
	LargeBlob AuthenticationExtensionsLargeBlobOutputs `cbor:"largeBlob"`
}

type PRFInputs

type PRFInputs struct {
	PRF AuthenticationExtensionsPRFInputs `cbor:"prf"`
}

type PRFOutputs

type PRFOutputs struct {
	PRF AuthenticationExtensionsPRFOutputs `cbor:"prf"`
}

type PaymentCredentialInstrument

type PaymentCredentialInstrument struct {
	DisplayName     string `cbor:"displayName" json:"displayName"`
	Icon            string `cbor:"icon" json:"icon"`
	IconMustBeShown string `cbor:"iconMustBeShown,omitempty" json:"iconMustBeShown,omitempty"` // should default to true
	Details         string `cbor:"details,omitempty" json:"details,omitempty"`
}

type PaymentCurrencyAmount

type PaymentCurrencyAmount struct {
	Currency string `cbor:"currency" json:"currency"`
	Value    string `cbor:"value" json:"value"`
}
type PaymentEntityLogo struct {
	URL   string `cbor:"url" json:"url"`
	Label string `cbor:"label" json:"label"`
}

type PaymentInputs

type PaymentInputs struct {
	Payment AuthenticationExtensionsPaymentInputs `cbor:"payment"`
}

type PaymentOutputs

type PaymentOutputs struct {
	Payment AuthenticationExtensionsPaymentOutputs `cbor:"payment"`
}

Jump to

Keyboard shortcuts

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