fido2

package module
v0.0.0-...-c1743e4 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 12 Imported by: 3

README

fido2

gRPC definitions for go-libfido2.

Dependencies

Linux
sudo apt install software-properties-common
sudo apt-add-repository ppa:yubico/stable
sudo apt update
sudo apt install libfido2-dev
macOS
brew install keys-pub/tap/libfido2
Windows
scoop bucket add keys.pub https://github.com/keys-pub/scoop-bucket
scoop install libfido2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeviceType_name = map[int32]string{
		0: "UNKNOWN_DEVICE",
		1: "U2F_DEVICE",
		2: "FIDO2_DEVICE",
	}
	DeviceType_value = map[string]int32{
		"UNKNOWN_DEVICE": 0,
		"U2F_DEVICE":     1,
		"FIDO2_DEVICE":   2,
	}
)

Enum value maps for DeviceType.

View Source
var (
	OptionValue_name = map[int32]string{
		0: "DEFAULT_OPTION",
		1: "TRUE",
		2: "FALSE",
	}
	OptionValue_value = map[string]int32{
		"DEFAULT_OPTION": 0,
		"TRUE":           1,
		"FALSE":          2,
	}
)

Enum value maps for OptionValue.

View Source
var File_fido2_proto protoreflect.FileDescriptor

Functions

func RegisterFIDO2Server

func RegisterFIDO2Server(s *grpc.Server, srv FIDO2Server)

Types

type Assertion

type Assertion struct {
	AuthData   []byte `protobuf:"bytes,1,opt,name=authData,proto3" json:"authData,omitempty"`
	Sig        []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
	HMACSecret []byte `protobuf:"bytes,3,opt,name=hmacSecret,proto3" json:"hmacSecret,omitempty"`
	// contains filtered or unexported fields
}

func (*Assertion) Descriptor deprecated

func (*Assertion) Descriptor() ([]byte, []int)

Deprecated: Use Assertion.ProtoReflect.Descriptor instead.

func (*Assertion) GetAuthData

func (x *Assertion) GetAuthData() []byte

func (*Assertion) GetHMACSecret

func (x *Assertion) GetHMACSecret() []byte

func (*Assertion) GetSig

func (x *Assertion) GetSig() []byte

func (*Assertion) ProtoMessage

func (*Assertion) ProtoMessage()

func (*Assertion) ProtoReflect

func (x *Assertion) ProtoReflect() protoreflect.Message

func (*Assertion) Reset

func (x *Assertion) Reset()

func (*Assertion) String

func (x *Assertion) String() string

type AssertionRequest

type AssertionRequest struct {
	Device         string   `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	RPID           string   `protobuf:"bytes,2,opt,name=rpId,proto3" json:"rpId,omitempty"`
	ClientDataHash []byte   `protobuf:"bytes,3,opt,name=clientDataHash,proto3" json:"clientDataHash,omitempty"`
	CredentialIDs  [][]byte `protobuf:"bytes,4,rep,name=credentialIds,proto3" json:"credentialIds,omitempty"`
	PIN            string   `protobuf:"bytes,5,opt,name=pin,proto3" json:"pin,omitempty"`
	Extensions     []string `protobuf:"bytes,100,rep,name=extensions,proto3" json:"extensions,omitempty"`
	UV             string   `protobuf:"bytes,101,opt,name=uv,proto3" json:"uv,omitempty"`
	UP             string   `protobuf:"bytes,102,opt,name=up,proto3" json:"up,omitempty"`
	HMACSalt       []byte   `protobuf:"bytes,103,opt,name=hmacSalt,proto3" json:"hmacSalt,omitempty"`
	// contains filtered or unexported fields
}

func (*AssertionRequest) Descriptor deprecated

func (*AssertionRequest) Descriptor() ([]byte, []int)

Deprecated: Use AssertionRequest.ProtoReflect.Descriptor instead.

func (*AssertionRequest) GetClientDataHash

func (x *AssertionRequest) GetClientDataHash() []byte

func (*AssertionRequest) GetCredentialIDs

func (x *AssertionRequest) GetCredentialIDs() [][]byte

func (*AssertionRequest) GetDevice

func (x *AssertionRequest) GetDevice() string

func (*AssertionRequest) GetExtensions

func (x *AssertionRequest) GetExtensions() []string

func (*AssertionRequest) GetHMACSalt

func (x *AssertionRequest) GetHMACSalt() []byte

func (*AssertionRequest) GetPIN

func (x *AssertionRequest) GetPIN() string

func (*AssertionRequest) GetRPID

func (x *AssertionRequest) GetRPID() string

func (*AssertionRequest) GetUP

func (x *AssertionRequest) GetUP() string

func (*AssertionRequest) GetUV

func (x *AssertionRequest) GetUV() string

func (*AssertionRequest) ProtoMessage

func (*AssertionRequest) ProtoMessage()

func (*AssertionRequest) ProtoReflect

func (x *AssertionRequest) ProtoReflect() protoreflect.Message

func (*AssertionRequest) Reset

func (x *AssertionRequest) Reset()

func (*AssertionRequest) String

func (x *AssertionRequest) String() string

type AssertionResponse

type AssertionResponse struct {
	Assertion *Assertion `protobuf:"bytes,1,opt,name=assertion,proto3" json:"assertion,omitempty"`
	// contains filtered or unexported fields
}

func (*AssertionResponse) Descriptor deprecated

func (*AssertionResponse) Descriptor() ([]byte, []int)

Deprecated: Use AssertionResponse.ProtoReflect.Descriptor instead.

func (*AssertionResponse) GetAssertion

func (x *AssertionResponse) GetAssertion() *Assertion

func (*AssertionResponse) ProtoMessage

func (*AssertionResponse) ProtoMessage()

func (*AssertionResponse) ProtoReflect

func (x *AssertionResponse) ProtoReflect() protoreflect.Message

func (*AssertionResponse) Reset

func (x *AssertionResponse) Reset()

func (*AssertionResponse) String

func (x *AssertionResponse) String() string

type Attestation

type Attestation struct {
	ClientDataHash []byte `protobuf:"bytes,1,opt,name=clientDataHash,proto3" json:"clientDataHash,omitempty"`
	AuthData       []byte `protobuf:"bytes,2,opt,name=authData,proto3" json:"authData,omitempty"`
	CredentialID   []byte `protobuf:"bytes,3,opt,name=credentialId,proto3" json:"credentialId,omitempty"`
	CredentialType string `protobuf:"bytes,4,opt,name=credentialType,proto3" json:"credentialType,omitempty"`
	PubKey         []byte `protobuf:"bytes,5,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
	Cert           []byte `protobuf:"bytes,6,opt,name=cert,proto3" json:"cert,omitempty"`
	Sig            []byte `protobuf:"bytes,7,opt,name=sig,proto3" json:"sig,omitempty"`
	Format         string `protobuf:"bytes,8,opt,name=format,proto3" json:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*Attestation) Descriptor deprecated

func (*Attestation) Descriptor() ([]byte, []int)

Deprecated: Use Attestation.ProtoReflect.Descriptor instead.

func (*Attestation) GetAuthData

func (x *Attestation) GetAuthData() []byte

func (*Attestation) GetCert

func (x *Attestation) GetCert() []byte

func (*Attestation) GetClientDataHash

func (x *Attestation) GetClientDataHash() []byte

func (*Attestation) GetCredentialID

func (x *Attestation) GetCredentialID() []byte

func (*Attestation) GetCredentialType

func (x *Attestation) GetCredentialType() string

func (*Attestation) GetFormat

func (x *Attestation) GetFormat() string

func (*Attestation) GetPubKey

func (x *Attestation) GetPubKey() []byte

func (*Attestation) GetSig

func (x *Attestation) GetSig() []byte

func (*Attestation) ProtoMessage

func (*Attestation) ProtoMessage()

func (*Attestation) ProtoReflect

func (x *Attestation) ProtoReflect() protoreflect.Message

func (*Attestation) Reset

func (x *Attestation) Reset()

func (*Attestation) String

func (x *Attestation) String() string

type Credential

type Credential struct {
	ID   []byte        `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type string        `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	RP   *RelyingParty `protobuf:"bytes,10,opt,name=rp,proto3" json:"rp,omitempty"`
	User *User         `protobuf:"bytes,11,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*Credential) Descriptor deprecated

func (*Credential) Descriptor() ([]byte, []int)

Deprecated: Use Credential.ProtoReflect.Descriptor instead.

func (*Credential) GetID

func (x *Credential) GetID() []byte

func (*Credential) GetRP

func (x *Credential) GetRP() *RelyingParty

func (*Credential) GetType

func (x *Credential) GetType() string

func (*Credential) GetUser

func (x *Credential) GetUser() *User

func (*Credential) ProtoMessage

func (*Credential) ProtoMessage()

func (*Credential) ProtoReflect

func (x *Credential) ProtoReflect() protoreflect.Message

func (*Credential) Reset

func (x *Credential) Reset()

func (*Credential) String

func (x *Credential) String() string

type CredentialsInfo

type CredentialsInfo struct {
	RKExisting  int32 `protobuf:"varint,1,opt,name=rkExisting,proto3" json:"rkExisting,omitempty"`
	RKRemaining int32 `protobuf:"varint,2,opt,name=rkRemaining,proto3" json:"rkRemaining,omitempty"`
	// contains filtered or unexported fields
}

func (*CredentialsInfo) Descriptor deprecated

func (*CredentialsInfo) Descriptor() ([]byte, []int)

Deprecated: Use CredentialsInfo.ProtoReflect.Descriptor instead.

func (*CredentialsInfo) GetRKExisting

func (x *CredentialsInfo) GetRKExisting() int32

func (*CredentialsInfo) GetRKRemaining

func (x *CredentialsInfo) GetRKRemaining() int32

func (*CredentialsInfo) ProtoMessage

func (*CredentialsInfo) ProtoMessage()

func (*CredentialsInfo) ProtoReflect

func (x *CredentialsInfo) ProtoReflect() protoreflect.Message

func (*CredentialsInfo) Reset

func (x *CredentialsInfo) Reset()

func (*CredentialsInfo) String

func (x *CredentialsInfo) String() string

type CredentialsInfoRequest

type CredentialsInfoRequest struct {
	Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	PIN    string `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"`
	// contains filtered or unexported fields
}

func (*CredentialsInfoRequest) Descriptor deprecated

func (*CredentialsInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use CredentialsInfoRequest.ProtoReflect.Descriptor instead.

func (*CredentialsInfoRequest) GetDevice

func (x *CredentialsInfoRequest) GetDevice() string

func (*CredentialsInfoRequest) GetPIN

func (x *CredentialsInfoRequest) GetPIN() string

func (*CredentialsInfoRequest) ProtoMessage

func (*CredentialsInfoRequest) ProtoMessage()

func (*CredentialsInfoRequest) ProtoReflect

func (x *CredentialsInfoRequest) ProtoReflect() protoreflect.Message

func (*CredentialsInfoRequest) Reset

func (x *CredentialsInfoRequest) Reset()

func (*CredentialsInfoRequest) String

func (x *CredentialsInfoRequest) String() string

type CredentialsInfoResponse

type CredentialsInfoResponse struct {
	Info *CredentialsInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*CredentialsInfoResponse) Descriptor deprecated

func (*CredentialsInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use CredentialsInfoResponse.ProtoReflect.Descriptor instead.

func (*CredentialsInfoResponse) GetInfo

func (*CredentialsInfoResponse) ProtoMessage

func (*CredentialsInfoResponse) ProtoMessage()

func (*CredentialsInfoResponse) ProtoReflect

func (x *CredentialsInfoResponse) ProtoReflect() protoreflect.Message

func (*CredentialsInfoResponse) Reset

func (x *CredentialsInfoResponse) Reset()

func (*CredentialsInfoResponse) String

func (x *CredentialsInfoResponse) String() string

type CredentialsRequest

type CredentialsRequest struct {
	Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	RPID   string `protobuf:"bytes,2,opt,name=rpId,proto3" json:"rpId,omitempty"`
	PIN    string `protobuf:"bytes,3,opt,name=pin,proto3" json:"pin,omitempty"`
	// contains filtered or unexported fields
}

func (*CredentialsRequest) Descriptor deprecated

func (*CredentialsRequest) Descriptor() ([]byte, []int)

Deprecated: Use CredentialsRequest.ProtoReflect.Descriptor instead.

func (*CredentialsRequest) GetDevice

func (x *CredentialsRequest) GetDevice() string

func (*CredentialsRequest) GetPIN

func (x *CredentialsRequest) GetPIN() string

func (*CredentialsRequest) GetRPID

func (x *CredentialsRequest) GetRPID() string

func (*CredentialsRequest) ProtoMessage

func (*CredentialsRequest) ProtoMessage()

func (*CredentialsRequest) ProtoReflect

func (x *CredentialsRequest) ProtoReflect() protoreflect.Message

func (*CredentialsRequest) Reset

func (x *CredentialsRequest) Reset()

func (*CredentialsRequest) String

func (x *CredentialsRequest) String() string

type CredentialsResponse

type CredentialsResponse struct {
	Credentials []*Credential `protobuf:"bytes,1,rep,name=credentials,proto3" json:"credentials,omitempty"`
	// contains filtered or unexported fields
}

func (*CredentialsResponse) Descriptor deprecated

func (*CredentialsResponse) Descriptor() ([]byte, []int)

Deprecated: Use CredentialsResponse.ProtoReflect.Descriptor instead.

func (*CredentialsResponse) GetCredentials

func (x *CredentialsResponse) GetCredentials() []*Credential

func (*CredentialsResponse) ProtoMessage

func (*CredentialsResponse) ProtoMessage()

func (*CredentialsResponse) ProtoReflect

func (x *CredentialsResponse) ProtoReflect() protoreflect.Message

func (*CredentialsResponse) Reset

func (x *CredentialsResponse) Reset()

func (*CredentialsResponse) String

func (x *CredentialsResponse) String() string

type Device

type Device struct {
	Path         string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	ProductID    int32  `protobuf:"varint,2,opt,name=productId,proto3" json:"productId,omitempty"`
	VendorID     int32  `protobuf:"varint,3,opt,name=vendorId,proto3" json:"vendorId,omitempty"`
	Manufacturer string `protobuf:"bytes,4,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"`
	Product      string `protobuf:"bytes,5,opt,name=product,proto3" json:"product,omitempty"`
	// contains filtered or unexported fields
}

func (*Device) Descriptor deprecated

func (*Device) Descriptor() ([]byte, []int)

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetManufacturer

func (x *Device) GetManufacturer() string

func (*Device) GetPath

func (x *Device) GetPath() string

func (*Device) GetProduct

func (x *Device) GetProduct() string

func (*Device) GetProductID

func (x *Device) GetProductID() int32

func (*Device) GetVendorID

func (x *Device) GetVendorID() int32

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

func (x *Device) ProtoReflect() protoreflect.Message

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

type DeviceInfo

type DeviceInfo struct {
	Versions   []string  `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
	Extensions []string  `protobuf:"bytes,2,rep,name=extensions,proto3" json:"extensions,omitempty"`
	AAGUID     string    `protobuf:"bytes,3,opt,name=aaguid,proto3" json:"aaguid,omitempty"`
	Options    []*Option `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceInfo) Descriptor deprecated

func (*DeviceInfo) Descriptor() ([]byte, []int)

Deprecated: Use DeviceInfo.ProtoReflect.Descriptor instead.

func (*DeviceInfo) GetAAGUID

func (x *DeviceInfo) GetAAGUID() string

func (*DeviceInfo) GetExtensions

func (x *DeviceInfo) GetExtensions() []string

func (*DeviceInfo) GetOptions

func (x *DeviceInfo) GetOptions() []*Option

func (*DeviceInfo) GetVersions

func (x *DeviceInfo) GetVersions() []string

func (*DeviceInfo) HasExtension

func (d *DeviceInfo) HasExtension(ext Extension) bool

HasExtension returns true if device has extension.

func (*DeviceInfo) ProtoMessage

func (*DeviceInfo) ProtoMessage()

func (*DeviceInfo) ProtoReflect

func (x *DeviceInfo) ProtoReflect() protoreflect.Message

func (*DeviceInfo) Reset

func (x *DeviceInfo) Reset()

func (*DeviceInfo) String

func (x *DeviceInfo) String() string

type DeviceInfoRequest

type DeviceInfoRequest struct {
	Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceInfoRequest) Descriptor deprecated

func (*DeviceInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeviceInfoRequest.ProtoReflect.Descriptor instead.

func (*DeviceInfoRequest) GetDevice

func (x *DeviceInfoRequest) GetDevice() string

func (*DeviceInfoRequest) ProtoMessage

func (*DeviceInfoRequest) ProtoMessage()

func (*DeviceInfoRequest) ProtoReflect

func (x *DeviceInfoRequest) ProtoReflect() protoreflect.Message

func (*DeviceInfoRequest) Reset

func (x *DeviceInfoRequest) Reset()

func (*DeviceInfoRequest) String

func (x *DeviceInfoRequest) String() string

type DeviceInfoResponse

type DeviceInfoResponse struct {
	Info *DeviceInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceInfoResponse) Descriptor deprecated

func (*DeviceInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeviceInfoResponse.ProtoReflect.Descriptor instead.

func (*DeviceInfoResponse) GetInfo

func (x *DeviceInfoResponse) GetInfo() *DeviceInfo

func (*DeviceInfoResponse) ProtoMessage

func (*DeviceInfoResponse) ProtoMessage()

func (*DeviceInfoResponse) ProtoReflect

func (x *DeviceInfoResponse) ProtoReflect() protoreflect.Message

func (*DeviceInfoResponse) Reset

func (x *DeviceInfoResponse) Reset()

func (*DeviceInfoResponse) String

func (x *DeviceInfoResponse) String() string

type DeviceType

type DeviceType int32
const (
	UnknownDevice DeviceType = 0
	U2FDevice     DeviceType = 1
	FIDO2Device   DeviceType = 2
)

func (DeviceType) Descriptor

func (DeviceType) Descriptor() protoreflect.EnumDescriptor

func (DeviceType) Enum

func (x DeviceType) Enum() *DeviceType

func (DeviceType) EnumDescriptor deprecated

func (DeviceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeviceType.Descriptor instead.

func (DeviceType) Number

func (x DeviceType) Number() protoreflect.EnumNumber

func (DeviceType) String

func (x DeviceType) String() string

func (DeviceType) Type

type DeviceTypeRequest

type DeviceTypeRequest struct {
	Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceTypeRequest) Descriptor deprecated

func (*DeviceTypeRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeviceTypeRequest.ProtoReflect.Descriptor instead.

func (*DeviceTypeRequest) GetDevice

func (x *DeviceTypeRequest) GetDevice() string

func (*DeviceTypeRequest) ProtoMessage

func (*DeviceTypeRequest) ProtoMessage()

func (*DeviceTypeRequest) ProtoReflect

func (x *DeviceTypeRequest) ProtoReflect() protoreflect.Message

func (*DeviceTypeRequest) Reset

func (x *DeviceTypeRequest) Reset()

func (*DeviceTypeRequest) String

func (x *DeviceTypeRequest) String() string

type DeviceTypeResponse

type DeviceTypeResponse struct {
	Type DeviceType `protobuf:"varint,1,opt,name=type,proto3,enum=fido2.DeviceType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceTypeResponse) Descriptor deprecated

func (*DeviceTypeResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeviceTypeResponse.ProtoReflect.Descriptor instead.

func (*DeviceTypeResponse) GetType

func (x *DeviceTypeResponse) GetType() DeviceType

func (*DeviceTypeResponse) ProtoMessage

func (*DeviceTypeResponse) ProtoMessage()

func (*DeviceTypeResponse) ProtoReflect

func (x *DeviceTypeResponse) ProtoReflect() protoreflect.Message

func (*DeviceTypeResponse) Reset

func (x *DeviceTypeResponse) Reset()

func (*DeviceTypeResponse) String

func (x *DeviceTypeResponse) String() string

type DevicesRequest

type DevicesRequest struct {
	// contains filtered or unexported fields
}

func (*DevicesRequest) Descriptor deprecated

func (*DevicesRequest) Descriptor() ([]byte, []int)

Deprecated: Use DevicesRequest.ProtoReflect.Descriptor instead.

func (*DevicesRequest) ProtoMessage

func (*DevicesRequest) ProtoMessage()

func (*DevicesRequest) ProtoReflect

func (x *DevicesRequest) ProtoReflect() protoreflect.Message

func (*DevicesRequest) Reset

func (x *DevicesRequest) Reset()

func (*DevicesRequest) String

func (x *DevicesRequest) String() string

type DevicesResponse

type DevicesResponse struct {
	Devices []*Device `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
	// contains filtered or unexported fields
}

func (*DevicesResponse) Descriptor deprecated

func (*DevicesResponse) Descriptor() ([]byte, []int)

Deprecated: Use DevicesResponse.ProtoReflect.Descriptor instead.

func (*DevicesResponse) GetDevices

func (x *DevicesResponse) GetDevices() []*Device

func (*DevicesResponse) ProtoMessage

func (*DevicesResponse) ProtoMessage()

func (*DevicesResponse) ProtoReflect

func (x *DevicesResponse) ProtoReflect() protoreflect.Message

func (*DevicesResponse) Reset

func (x *DevicesResponse) Reset()

func (*DevicesResponse) String

func (x *DevicesResponse) String() string

type Extension

type Extension string

Extension (FIDO2).

const CredProtectExtension Extension = "credProtect"

CredProtectExtension (should match libfido2.CredProtectExtension).

const HMACSecretExtension Extension = "hmac-secret"

HMACSecretExtension (should match libfido2.HMACSecretExtension).

type FIDO2Client

FIDO2Client is the client API for FIDO2 service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewFIDO2Client

func NewFIDO2Client(cc grpc.ClientConnInterface) FIDO2Client

type FIDO2Server

FIDO2Server is the server API for FIDO2 service. All implementations must embed UnimplementedFIDO2Server for forward compatibility

func OpenPlugin

func OpenPlugin(path string) (FIDO2Server, error)

OpenPlugin returns FIDO2Server from shared library.

type GenerateHMACSecretRequest

type GenerateHMACSecretRequest struct {
	Device         string        `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	PIN            string        `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"`
	ClientDataHash []byte        `protobuf:"bytes,10,opt,name=clientDataHash,proto3" json:"clientDataHash,omitempty"`
	RP             *RelyingParty `protobuf:"bytes,11,opt,name=rp,proto3" json:"rp,omitempty"`
	User           *User         `protobuf:"bytes,12,opt,name=user,proto3" json:"user,omitempty"`
	RK             OptionValue   `protobuf:"varint,20,opt,name=rk,proto3,enum=fido2.OptionValue" json:"rk,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateHMACSecretRequest) Descriptor deprecated

func (*GenerateHMACSecretRequest) Descriptor() ([]byte, []int)

Deprecated: Use GenerateHMACSecretRequest.ProtoReflect.Descriptor instead.

func (*GenerateHMACSecretRequest) GetClientDataHash

func (x *GenerateHMACSecretRequest) GetClientDataHash() []byte

func (*GenerateHMACSecretRequest) GetDevice

func (x *GenerateHMACSecretRequest) GetDevice() string

func (*GenerateHMACSecretRequest) GetPIN

func (x *GenerateHMACSecretRequest) GetPIN() string

func (*GenerateHMACSecretRequest) GetRK

func (*GenerateHMACSecretRequest) GetRP

func (*GenerateHMACSecretRequest) GetUser

func (x *GenerateHMACSecretRequest) GetUser() *User

func (*GenerateHMACSecretRequest) ProtoMessage

func (*GenerateHMACSecretRequest) ProtoMessage()

func (*GenerateHMACSecretRequest) ProtoReflect

func (*GenerateHMACSecretRequest) Reset

func (x *GenerateHMACSecretRequest) Reset()

func (*GenerateHMACSecretRequest) String

func (x *GenerateHMACSecretRequest) String() string

type GenerateHMACSecretResponse

type GenerateHMACSecretResponse struct {
	CredentialID []byte `protobuf:"bytes,2,opt,name=credentialId,proto3" json:"credentialId,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateHMACSecretResponse) Descriptor deprecated

func (*GenerateHMACSecretResponse) Descriptor() ([]byte, []int)

Deprecated: Use GenerateHMACSecretResponse.ProtoReflect.Descriptor instead.

func (*GenerateHMACSecretResponse) GetCredentialID

func (x *GenerateHMACSecretResponse) GetCredentialID() []byte

func (*GenerateHMACSecretResponse) ProtoMessage

func (*GenerateHMACSecretResponse) ProtoMessage()

func (*GenerateHMACSecretResponse) ProtoReflect

func (*GenerateHMACSecretResponse) Reset

func (x *GenerateHMACSecretResponse) Reset()

func (*GenerateHMACSecretResponse) String

func (x *GenerateHMACSecretResponse) String() string

type HMACSecretRequest

type HMACSecretRequest struct {
	Device         string   `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	PIN            string   `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"`
	RPID           string   `protobuf:"bytes,10,opt,name=rpId,proto3" json:"rpId,omitempty"`
	ClientDataHash []byte   `protobuf:"bytes,11,opt,name=clientDataHash,proto3" json:"clientDataHash,omitempty"`
	CredentialIDs  [][]byte `protobuf:"bytes,12,rep,name=credentialIds,proto3" json:"credentialIds,omitempty"`
	Salt           []byte   `protobuf:"bytes,13,opt,name=salt,proto3" json:"salt,omitempty"`
	// contains filtered or unexported fields
}

func (*HMACSecretRequest) Descriptor deprecated

func (*HMACSecretRequest) Descriptor() ([]byte, []int)

Deprecated: Use HMACSecretRequest.ProtoReflect.Descriptor instead.

func (*HMACSecretRequest) GetClientDataHash

func (x *HMACSecretRequest) GetClientDataHash() []byte

func (*HMACSecretRequest) GetCredentialIDs

func (x *HMACSecretRequest) GetCredentialIDs() [][]byte

func (*HMACSecretRequest) GetDevice

func (x *HMACSecretRequest) GetDevice() string

func (*HMACSecretRequest) GetPIN

func (x *HMACSecretRequest) GetPIN() string

func (*HMACSecretRequest) GetRPID

func (x *HMACSecretRequest) GetRPID() string

func (*HMACSecretRequest) GetSalt

func (x *HMACSecretRequest) GetSalt() []byte

func (*HMACSecretRequest) ProtoMessage

func (*HMACSecretRequest) ProtoMessage()

func (*HMACSecretRequest) ProtoReflect

func (x *HMACSecretRequest) ProtoReflect() protoreflect.Message

func (*HMACSecretRequest) Reset

func (x *HMACSecretRequest) Reset()

func (*HMACSecretRequest) String

func (x *HMACSecretRequest) String() string

type HMACSecretResponse

type HMACSecretResponse struct {
	HMACSecret []byte `protobuf:"bytes,1,opt,name=hmacSecret,proto3" json:"hmacSecret,omitempty"`
	// contains filtered or unexported fields
}

func (*HMACSecretResponse) Descriptor deprecated

func (*HMACSecretResponse) Descriptor() ([]byte, []int)

Deprecated: Use HMACSecretResponse.ProtoReflect.Descriptor instead.

func (*HMACSecretResponse) GetHMACSecret

func (x *HMACSecretResponse) GetHMACSecret() []byte

func (*HMACSecretResponse) ProtoMessage

func (*HMACSecretResponse) ProtoMessage()

func (*HMACSecretResponse) ProtoReflect

func (x *HMACSecretResponse) ProtoReflect() protoreflect.Message

func (*HMACSecretResponse) Reset

func (x *HMACSecretResponse) Reset()

func (*HMACSecretResponse) String

func (x *HMACSecretResponse) String() string

type MakeCredentialRequest

type MakeCredentialRequest struct {
	Device         string        `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	ClientDataHash []byte        `protobuf:"bytes,2,opt,name=clientDataHash,proto3" json:"clientDataHash,omitempty"`
	RP             *RelyingParty `protobuf:"bytes,3,opt,name=rp,proto3" json:"rp,omitempty"`
	User           *User         `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
	Type           string        `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	PIN            string        `protobuf:"bytes,6,opt,name=pin,proto3" json:"pin,omitempty"`
	Extensions     []string      `protobuf:"bytes,100,rep,name=extensions,proto3" json:"extensions,omitempty"`
	RK             string        `protobuf:"bytes,101,opt,name=rk,proto3" json:"rk,omitempty"`
	UV             string        `protobuf:"bytes,102,opt,name=uv,proto3" json:"uv,omitempty"`
	// contains filtered or unexported fields
}

func (*MakeCredentialRequest) Descriptor deprecated

func (*MakeCredentialRequest) Descriptor() ([]byte, []int)

Deprecated: Use MakeCredentialRequest.ProtoReflect.Descriptor instead.

func (*MakeCredentialRequest) GetClientDataHash

func (x *MakeCredentialRequest) GetClientDataHash() []byte

func (*MakeCredentialRequest) GetDevice

func (x *MakeCredentialRequest) GetDevice() string

func (*MakeCredentialRequest) GetExtensions

func (x *MakeCredentialRequest) GetExtensions() []string

func (*MakeCredentialRequest) GetPIN

func (x *MakeCredentialRequest) GetPIN() string

func (*MakeCredentialRequest) GetRK

func (x *MakeCredentialRequest) GetRK() string

func (*MakeCredentialRequest) GetRP

func (x *MakeCredentialRequest) GetRP() *RelyingParty

func (*MakeCredentialRequest) GetType

func (x *MakeCredentialRequest) GetType() string

func (*MakeCredentialRequest) GetUV

func (x *MakeCredentialRequest) GetUV() string

func (*MakeCredentialRequest) GetUser

func (x *MakeCredentialRequest) GetUser() *User

func (*MakeCredentialRequest) ProtoMessage

func (*MakeCredentialRequest) ProtoMessage()

func (*MakeCredentialRequest) ProtoReflect

func (x *MakeCredentialRequest) ProtoReflect() protoreflect.Message

func (*MakeCredentialRequest) Reset

func (x *MakeCredentialRequest) Reset()

func (*MakeCredentialRequest) String

func (x *MakeCredentialRequest) String() string

type MakeCredentialResponse

type MakeCredentialResponse struct {
	Attestation *Attestation `protobuf:"bytes,1,opt,name=attestation,proto3" json:"attestation,omitempty"`
	// contains filtered or unexported fields
}

func (*MakeCredentialResponse) Descriptor deprecated

func (*MakeCredentialResponse) Descriptor() ([]byte, []int)

Deprecated: Use MakeCredentialResponse.ProtoReflect.Descriptor instead.

func (*MakeCredentialResponse) GetAttestation

func (x *MakeCredentialResponse) GetAttestation() *Attestation

func (*MakeCredentialResponse) ProtoMessage

func (*MakeCredentialResponse) ProtoMessage()

func (*MakeCredentialResponse) ProtoReflect

func (x *MakeCredentialResponse) ProtoReflect() protoreflect.Message

func (*MakeCredentialResponse) Reset

func (x *MakeCredentialResponse) Reset()

func (*MakeCredentialResponse) String

func (x *MakeCredentialResponse) String() string

type Option

type Option struct {
	Name  string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value OptionValue `protobuf:"varint,2,opt,name=value,proto3,enum=fido2.OptionValue" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Option) Descriptor deprecated

func (*Option) Descriptor() ([]byte, []int)

Deprecated: Use Option.ProtoReflect.Descriptor instead.

func (*Option) GetName

func (x *Option) GetName() string

func (*Option) GetValue

func (x *Option) GetValue() OptionValue

func (*Option) ProtoMessage

func (*Option) ProtoMessage()

func (*Option) ProtoReflect

func (x *Option) ProtoReflect() protoreflect.Message

func (*Option) Reset

func (x *Option) Reset()

func (*Option) String

func (x *Option) String() string

type OptionValue

type OptionValue int32
const (
	Default OptionValue = 0
	True    OptionValue = 1
	False   OptionValue = 2
)

func (OptionValue) Descriptor

func (OptionValue) Enum

func (x OptionValue) Enum() *OptionValue

func (OptionValue) EnumDescriptor deprecated

func (OptionValue) EnumDescriptor() ([]byte, []int)

Deprecated: Use OptionValue.Descriptor instead.

func (OptionValue) Number

func (x OptionValue) Number() protoreflect.EnumNumber

func (OptionValue) String

func (x OptionValue) String() string

func (OptionValue) Type

type RelyingPartiesRequest

type RelyingPartiesRequest struct {
	Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	PIN    string `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"`
	// contains filtered or unexported fields
}

func (*RelyingPartiesRequest) Descriptor deprecated

func (*RelyingPartiesRequest) Descriptor() ([]byte, []int)

Deprecated: Use RelyingPartiesRequest.ProtoReflect.Descriptor instead.

func (*RelyingPartiesRequest) GetDevice

func (x *RelyingPartiesRequest) GetDevice() string

func (*RelyingPartiesRequest) GetPIN

func (x *RelyingPartiesRequest) GetPIN() string

func (*RelyingPartiesRequest) ProtoMessage

func (*RelyingPartiesRequest) ProtoMessage()

func (*RelyingPartiesRequest) ProtoReflect

func (x *RelyingPartiesRequest) ProtoReflect() protoreflect.Message

func (*RelyingPartiesRequest) Reset

func (x *RelyingPartiesRequest) Reset()

func (*RelyingPartiesRequest) String

func (x *RelyingPartiesRequest) String() string

type RelyingPartiesResponse

type RelyingPartiesResponse struct {
	Parties []*RelyingParty `protobuf:"bytes,1,rep,name=parties,proto3" json:"parties,omitempty"`
	// contains filtered or unexported fields
}

func (*RelyingPartiesResponse) Descriptor deprecated

func (*RelyingPartiesResponse) Descriptor() ([]byte, []int)

Deprecated: Use RelyingPartiesResponse.ProtoReflect.Descriptor instead.

func (*RelyingPartiesResponse) GetParties

func (x *RelyingPartiesResponse) GetParties() []*RelyingParty

func (*RelyingPartiesResponse) ProtoMessage

func (*RelyingPartiesResponse) ProtoMessage()

func (*RelyingPartiesResponse) ProtoReflect

func (x *RelyingPartiesResponse) ProtoReflect() protoreflect.Message

func (*RelyingPartiesResponse) Reset

func (x *RelyingPartiesResponse) Reset()

func (*RelyingPartiesResponse) String

func (x *RelyingPartiesResponse) String() string

type RelyingParty

type RelyingParty struct {
	ID   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*RelyingParty) Descriptor deprecated

func (*RelyingParty) Descriptor() ([]byte, []int)

Deprecated: Use RelyingParty.ProtoReflect.Descriptor instead.

func (*RelyingParty) GetID

func (x *RelyingParty) GetID() string

func (*RelyingParty) GetName

func (x *RelyingParty) GetName() string

func (*RelyingParty) ProtoMessage

func (*RelyingParty) ProtoMessage()

func (*RelyingParty) ProtoReflect

func (x *RelyingParty) ProtoReflect() protoreflect.Message

func (*RelyingParty) Reset

func (x *RelyingParty) Reset()

func (*RelyingParty) String

func (x *RelyingParty) String() string

type ResetRequest

type ResetRequest struct {
	Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetRequest) Descriptor deprecated

func (*ResetRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResetRequest.ProtoReflect.Descriptor instead.

func (*ResetRequest) GetDevice

func (x *ResetRequest) GetDevice() string

func (*ResetRequest) ProtoMessage

func (*ResetRequest) ProtoMessage()

func (*ResetRequest) ProtoReflect

func (x *ResetRequest) ProtoReflect() protoreflect.Message

func (*ResetRequest) Reset

func (x *ResetRequest) Reset()

func (*ResetRequest) String

func (x *ResetRequest) String() string

type ResetResponse

type ResetResponse struct {
	// contains filtered or unexported fields
}

func (*ResetResponse) Descriptor deprecated

func (*ResetResponse) Descriptor() ([]byte, []int)

Deprecated: Use ResetResponse.ProtoReflect.Descriptor instead.

func (*ResetResponse) ProtoMessage

func (*ResetResponse) ProtoMessage()

func (*ResetResponse) ProtoReflect

func (x *ResetResponse) ProtoReflect() protoreflect.Message

func (*ResetResponse) Reset

func (x *ResetResponse) Reset()

func (*ResetResponse) String

func (x *ResetResponse) String() string

type RetryCountRequest

type RetryCountRequest struct {
	Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	// contains filtered or unexported fields
}

func (*RetryCountRequest) Descriptor deprecated

func (*RetryCountRequest) Descriptor() ([]byte, []int)

Deprecated: Use RetryCountRequest.ProtoReflect.Descriptor instead.

func (*RetryCountRequest) GetDevice

func (x *RetryCountRequest) GetDevice() string

func (*RetryCountRequest) ProtoMessage

func (*RetryCountRequest) ProtoMessage()

func (*RetryCountRequest) ProtoReflect

func (x *RetryCountRequest) ProtoReflect() protoreflect.Message

func (*RetryCountRequest) Reset

func (x *RetryCountRequest) Reset()

func (*RetryCountRequest) String

func (x *RetryCountRequest) String() string

type RetryCountResponse

type RetryCountResponse struct {
	Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*RetryCountResponse) Descriptor deprecated

func (*RetryCountResponse) Descriptor() ([]byte, []int)

Deprecated: Use RetryCountResponse.ProtoReflect.Descriptor instead.

func (*RetryCountResponse) GetCount

func (x *RetryCountResponse) GetCount() int32

func (*RetryCountResponse) ProtoMessage

func (*RetryCountResponse) ProtoMessage()

func (*RetryCountResponse) ProtoReflect

func (x *RetryCountResponse) ProtoReflect() protoreflect.Message

func (*RetryCountResponse) Reset

func (x *RetryCountResponse) Reset()

func (*RetryCountResponse) String

func (x *RetryCountResponse) String() string

type SetPINRequest

type SetPINRequest struct {
	Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	PIN    string `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"`
	OldPIN string `protobuf:"bytes,3,opt,name=oldPin,proto3" json:"oldPin,omitempty"`
	// contains filtered or unexported fields
}

func (*SetPINRequest) Descriptor deprecated

func (*SetPINRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetPINRequest.ProtoReflect.Descriptor instead.

func (*SetPINRequest) GetDevice

func (x *SetPINRequest) GetDevice() string

func (*SetPINRequest) GetOldPIN

func (x *SetPINRequest) GetOldPIN() string

func (*SetPINRequest) GetPIN

func (x *SetPINRequest) GetPIN() string

func (*SetPINRequest) ProtoMessage

func (*SetPINRequest) ProtoMessage()

func (*SetPINRequest) ProtoReflect

func (x *SetPINRequest) ProtoReflect() protoreflect.Message

func (*SetPINRequest) Reset

func (x *SetPINRequest) Reset()

func (*SetPINRequest) String

func (x *SetPINRequest) String() string

type SetPINResponse

type SetPINResponse struct {
	// contains filtered or unexported fields
}

func (*SetPINResponse) Descriptor deprecated

func (*SetPINResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetPINResponse.ProtoReflect.Descriptor instead.

func (*SetPINResponse) ProtoMessage

func (*SetPINResponse) ProtoMessage()

func (*SetPINResponse) ProtoReflect

func (x *SetPINResponse) ProtoReflect() protoreflect.Message

func (*SetPINResponse) Reset

func (x *SetPINResponse) Reset()

func (*SetPINResponse) String

func (x *SetPINResponse) String() string

type UnimplementedFIDO2Server

type UnimplementedFIDO2Server struct {
}

UnimplementedFIDO2Server must be embedded to have forward compatible implementations.

func (*UnimplementedFIDO2Server) Assertion

func (*UnimplementedFIDO2Server) Credentials

func (*UnimplementedFIDO2Server) CredentialsInfo

func (*UnimplementedFIDO2Server) DeviceInfo

func (*UnimplementedFIDO2Server) DeviceType

func (*UnimplementedFIDO2Server) Devices

func (*UnimplementedFIDO2Server) GenerateHMACSecret

func (*UnimplementedFIDO2Server) HMACSecret

func (*UnimplementedFIDO2Server) MakeCredential

func (*UnimplementedFIDO2Server) RelyingParties

func (*UnimplementedFIDO2Server) Reset

func (*UnimplementedFIDO2Server) RetryCount

func (*UnimplementedFIDO2Server) SetPIN

type User

type User struct {
	ID          []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	DisplayName string `protobuf:"bytes,3,opt,name=displayName,proto3" json:"displayName,omitempty"`
	Icon        string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetDisplayName

func (x *User) GetDisplayName() string

func (*User) GetID

func (x *User) GetID() []byte

func (*User) GetIcon

func (x *User) GetIcon() string

func (*User) GetName

func (x *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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