webauthn

package
v1.0.26 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_types_webauthn_webauthn_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {

	// The AAGUID of the authenticator. An AAGUID is defined as an array containing the globally unique
	// identifier of the authenticator model being sought.
	AAGUID []byte `protobuf:"bytes,1,opt,name=a_a_g_u_i_d,json=aAGUID,proto3" json:"a_a_g_u_i_d,omitempty"`
	// SignCount -Upon a new login operation, the Relying Party compares the stored signature counter value
	// with the new sign_count value returned in the assertion’s authenticator data. If this new
	// signCount value is less than or equal to the stored value, a cloned authenticator may
	// exist, or the authenticator may be malfunctioning.
	SignCount uint32 `protobuf:"varint,2,opt,name=sign_count,json=signCount,proto3" json:"sign_count,omitempty"`
	// CloneWarning - This is a signal that the authenticator may be cloned, i.e. at least two copies of the
	// credential private key may exist and are being used in parallel. Relying Parties should incorporate
	// this information into their risk scoring. Whether the Relying Party updates the stored signature
	// counter value in this case, or not, or fails the authentication ceremony or not, is Relying Party-specific.
	CloneWarning bool `protobuf:"varint,3,opt,name=clone_warning,json=cloneWarning,proto3" json:"clone_warning,omitempty"`
	// Attachment is the authenticatorAttachment value returned by the request.
	Attachment   string `protobuf:"bytes,4,opt,name=attachment,proto3" json:"attachment,omitempty"`
	FriendlyName string `protobuf:"bytes,5,opt,name=friendly_name,json=friendlyName,proto3" json:"friendly_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Authenticator) Descriptor deprecated

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

Deprecated: Use Authenticator.ProtoReflect.Descriptor instead.

func (*Authenticator) GetAAGUID

func (x *Authenticator) GetAAGUID() []byte

func (*Authenticator) GetAttachment

func (x *Authenticator) GetAttachment() string

func (*Authenticator) GetCloneWarning

func (x *Authenticator) GetCloneWarning() bool

func (*Authenticator) GetFriendlyName

func (x *Authenticator) GetFriendlyName() string

func (*Authenticator) GetSignCount

func (x *Authenticator) GetSignCount() uint32

func (*Authenticator) ProtoMessage

func (*Authenticator) ProtoMessage()

func (*Authenticator) ProtoReflect

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

func (*Authenticator) Reset

func (x *Authenticator) Reset()

func (*Authenticator) String

func (x *Authenticator) String() string

type Credential

type Credential struct {

	// user friendly name to identity the credential
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A probabilistically-unique byte sequence identifying a public key credential source and its authentication assertions.
	ID []byte `protobuf:"bytes,2,opt,name=i_d,json=iD,proto3" json:"i_d,omitempty"`
	// The public key portion of a Relying Party-specific credential key pair, generated by an authenticator and returned to
	// a Relying Party at registration time (see also public key credential). The private key portion of the credential key
	// pair is known as the credential private key. Note that in the case of self attestation, the credential key pair is also
	// used as the attestation key pair, see self attestation for details.
	PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// The attestation format used (if any) by the authenticator when creating the credential.
	AttestationType string `protobuf:"bytes,4,opt,name=attestation_type,json=attestationType,proto3" json:"attestation_type,omitempty"`
	// The transport types the authenticator supports.
	Transport []string `protobuf:"bytes,5,rep,name=transport,proto3" json:"transport,omitempty"`
	// The commonly stored flags.
	Flags *CredentialFlags `protobuf:"bytes,6,opt,name=flags,proto3" json:"flags,omitempty"`
	// The Authenticator information for a given certificate
	Authenticator *Authenticator `protobuf:"bytes,7,opt,name=authenticator,proto3" json:"authenticator,omitempty"`
	// contains filtered or unexported fields
}

func (*Credential) Descriptor deprecated

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

Deprecated: Use Credential.ProtoReflect.Descriptor instead.

func (*Credential) GetAttestationType

func (x *Credential) GetAttestationType() string

func (*Credential) GetAuthenticator

func (x *Credential) GetAuthenticator() *Authenticator

func (*Credential) GetFlags

func (x *Credential) GetFlags() *CredentialFlags

func (*Credential) GetID

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

func (*Credential) GetName

func (x *Credential) GetName() string

func (*Credential) GetPublicKey

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

func (*Credential) GetTransport

func (x *Credential) GetTransport() []string

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 CredentialArrayUpdate

type CredentialArrayUpdate struct {

	// Types that are assignable to Update:
	//
	//	*CredentialArrayUpdate_Granular_
	//	*CredentialArrayUpdate_DeleteAll
	Update isCredentialArrayUpdate_Update `protobuf_oneof:"update"`
	// contains filtered or unexported fields
}

func (*CredentialArrayUpdate) Descriptor deprecated

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

Deprecated: Use CredentialArrayUpdate.ProtoReflect.Descriptor instead.

func (*CredentialArrayUpdate) GetDeleteAll

func (x *CredentialArrayUpdate) GetDeleteAll() *wrapperspb.BoolValue

func (*CredentialArrayUpdate) GetGranular

func (*CredentialArrayUpdate) GetUpdate

func (m *CredentialArrayUpdate) GetUpdate() isCredentialArrayUpdate_Update

func (*CredentialArrayUpdate) ProtoMessage

func (*CredentialArrayUpdate) ProtoMessage()

func (*CredentialArrayUpdate) ProtoReflect

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

func (*CredentialArrayUpdate) Reset

func (x *CredentialArrayUpdate) Reset()

func (*CredentialArrayUpdate) String

func (x *CredentialArrayUpdate) String() string

type CredentialArrayUpdate_DeleteAll

type CredentialArrayUpdate_DeleteAll struct {
	DeleteAll *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=delete_all,json=deleteAll,proto3,oneof"`
}

type CredentialArrayUpdate_Granular

type CredentialArrayUpdate_Granular struct {
	Add           []*Credential `protobuf:"bytes,1,rep,name=add,proto3" json:"add,omitempty"`
	RemoveAAGUIDs [][]byte      `protobuf:"bytes,2,rep,name=remove_a_a_g_u_i_ds,json=removeAAGUIDs,proto3" json:"remove_a_a_g_u_i_ds,omitempty"`
	// contains filtered or unexported fields
}

func (*CredentialArrayUpdate_Granular) Descriptor deprecated

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

Deprecated: Use CredentialArrayUpdate_Granular.ProtoReflect.Descriptor instead.

func (*CredentialArrayUpdate_Granular) GetAdd

func (*CredentialArrayUpdate_Granular) GetRemoveAAGUIDs

func (x *CredentialArrayUpdate_Granular) GetRemoveAAGUIDs() [][]byte

func (*CredentialArrayUpdate_Granular) ProtoMessage

func (*CredentialArrayUpdate_Granular) ProtoMessage()

func (*CredentialArrayUpdate_Granular) ProtoReflect

func (*CredentialArrayUpdate_Granular) Reset

func (x *CredentialArrayUpdate_Granular) Reset()

func (*CredentialArrayUpdate_Granular) String

type CredentialArrayUpdate_Granular_

type CredentialArrayUpdate_Granular_ struct {
	Granular *CredentialArrayUpdate_Granular `protobuf:"bytes,1,opt,name=granular,proto3,oneof"`
}

type CredentialFlags

type CredentialFlags struct {

	// Flag UP indicates the users presence.
	UserPresent bool `protobuf:"varint,1,opt,name=user_present,json=userPresent,proto3" json:"user_present,omitempty"`
	// Flag UV indicates the user verified.
	UserVerified bool `protobuf:"varint,2,opt,name=user_verified,json=userVerified,proto3" json:"user_verified,omitempty"`
	// Flag BE indicates the credential is able to be backed up and/or sync'd between devices. This should NEVER change.
	BackupEligible bool `protobuf:"varint,3,opt,name=backup_eligible,json=backupEligible,proto3" json:"backup_eligible,omitempty"`
	// Flag BS indicates the credential has been backed up and/or sync'd. This value can change but it's recommended
	// that RP's keep track of this value.
	BackupState bool `protobuf:"varint,4,opt,name=backup_state,json=backupState,proto3" json:"backup_state,omitempty"`
	// contains filtered or unexported fields
}

func (*CredentialFlags) Descriptor deprecated

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

Deprecated: Use CredentialFlags.ProtoReflect.Descriptor instead.

func (*CredentialFlags) GetBackupEligible

func (x *CredentialFlags) GetBackupEligible() bool

func (*CredentialFlags) GetBackupState

func (x *CredentialFlags) GetBackupState() bool

func (*CredentialFlags) GetUserPresent

func (x *CredentialFlags) GetUserPresent() bool

func (*CredentialFlags) GetUserVerified

func (x *CredentialFlags) GetUserVerified() bool

func (*CredentialFlags) ProtoMessage

func (*CredentialFlags) ProtoMessage()

func (*CredentialFlags) ProtoReflect

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

func (*CredentialFlags) Reset

func (x *CredentialFlags) Reset()

func (*CredentialFlags) String

func (x *CredentialFlags) String() string

Jump to

Keyboard shortcuts

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