webauthnpb

package
v0.0.0-...-477458c Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthWebauthn        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWebauthn          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWebauthn = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type AuthenticationExtensionsClientInputs

type AuthenticationExtensionsClientInputs struct {
	// U2F application ID to be used by the authenticator, if any.
	// Only available if using U2F compatibility mode.
	// https://www.w3.org/TR/webauthn-2/#sctn-appid-extension.
	AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	// Enables the credProps extension.
	// https://w3c.github.io/webauthn/#sctn-authenticator-credential-properties-extension
	CredProps            bool     `protobuf:"varint,2,opt,name=cred_props,json=credProps,proto3" json:"cred_props,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Extensions supplied by the Relying Party during credential assertion or creation. https://www.w3.org/TR/webauthn-2/#client-extension-input

func (*AuthenticationExtensionsClientInputs) Descriptor

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

func (*AuthenticationExtensionsClientInputs) GetAppId

func (*AuthenticationExtensionsClientInputs) GetCredProps

func (m *AuthenticationExtensionsClientInputs) GetCredProps() bool

func (*AuthenticationExtensionsClientInputs) Marshal

func (m *AuthenticationExtensionsClientInputs) Marshal() (dAtA []byte, err error)

func (*AuthenticationExtensionsClientInputs) MarshalTo

func (m *AuthenticationExtensionsClientInputs) MarshalTo(dAtA []byte) (int, error)

func (*AuthenticationExtensionsClientInputs) MarshalToSizedBuffer

func (m *AuthenticationExtensionsClientInputs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthenticationExtensionsClientInputs) ProtoMessage

func (*AuthenticationExtensionsClientInputs) ProtoMessage()

func (*AuthenticationExtensionsClientInputs) Reset

func (*AuthenticationExtensionsClientInputs) Size

func (*AuthenticationExtensionsClientInputs) String

func (*AuthenticationExtensionsClientInputs) Unmarshal

func (m *AuthenticationExtensionsClientInputs) Unmarshal(dAtA []byte) error

func (*AuthenticationExtensionsClientInputs) XXX_DiscardUnknown

func (m *AuthenticationExtensionsClientInputs) XXX_DiscardUnknown()

func (*AuthenticationExtensionsClientInputs) XXX_Marshal

func (m *AuthenticationExtensionsClientInputs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticationExtensionsClientInputs) XXX_Merge

func (*AuthenticationExtensionsClientInputs) XXX_Size

func (*AuthenticationExtensionsClientInputs) XXX_Unmarshal

func (m *AuthenticationExtensionsClientInputs) XXX_Unmarshal(b []byte) error

type AuthenticationExtensionsClientOutputs

type AuthenticationExtensionsClientOutputs struct {
	// If true, the AppID extension was used by the authenticator, which changes
	// the rpIdHash accordingly.
	// https://www.w3.org/TR/webauthn-2/#sctn-appid-extension.
	AppId bool `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	// Credential properties per credProps extension.
	// https://w3c.github.io/webauthn/#sctn-authenticator-credential-properties-extension.
	CredProps            *CredentialPropertiesOutput `protobuf:"bytes,2,opt,name=cred_props,json=credProps,proto3" json:"cred_props,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

Extensions supplied by the authenticator to the Relying Party, during credential assertion or creation. https://www.w3.org/TR/webauthn-2/#client-extension-output.

func (*AuthenticationExtensionsClientOutputs) Descriptor

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

func (*AuthenticationExtensionsClientOutputs) GetAppId

func (*AuthenticationExtensionsClientOutputs) GetCredProps

func (*AuthenticationExtensionsClientOutputs) Marshal

func (m *AuthenticationExtensionsClientOutputs) Marshal() (dAtA []byte, err error)

func (*AuthenticationExtensionsClientOutputs) MarshalTo

func (m *AuthenticationExtensionsClientOutputs) MarshalTo(dAtA []byte) (int, error)

func (*AuthenticationExtensionsClientOutputs) MarshalToSizedBuffer

func (m *AuthenticationExtensionsClientOutputs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthenticationExtensionsClientOutputs) ProtoMessage

func (*AuthenticationExtensionsClientOutputs) ProtoMessage()

func (*AuthenticationExtensionsClientOutputs) Reset

func (*AuthenticationExtensionsClientOutputs) Size

func (*AuthenticationExtensionsClientOutputs) String

func (*AuthenticationExtensionsClientOutputs) Unmarshal

func (m *AuthenticationExtensionsClientOutputs) Unmarshal(dAtA []byte) error

func (*AuthenticationExtensionsClientOutputs) XXX_DiscardUnknown

func (m *AuthenticationExtensionsClientOutputs) XXX_DiscardUnknown()

func (*AuthenticationExtensionsClientOutputs) XXX_Marshal

func (m *AuthenticationExtensionsClientOutputs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticationExtensionsClientOutputs) XXX_Merge

func (*AuthenticationExtensionsClientOutputs) XXX_Size

func (*AuthenticationExtensionsClientOutputs) XXX_Unmarshal

func (m *AuthenticationExtensionsClientOutputs) XXX_Unmarshal(b []byte) error

type AuthenticatorAssertionResponse

type AuthenticatorAssertionResponse struct {
	// Raw client data JSON, exactly as signed by the authenticator.
	// https://www.w3.org/TR/webauthn-2/#dictdef-collectedclientdata.
	ClientDataJson []byte `protobuf:"bytes,1,opt,name=client_data_json,json=clientDataJson,proto3" json:"client_data_json,omitempty"`
	// Raw authenticator data, exactly as signed by the authenticator.
	// https://www.w3.org/TR/webauthn-2/#sctn-authenticator-data.
	AuthenticatorData []byte `protobuf:"bytes,2,opt,name=authenticator_data,json=authenticatorData,proto3" json:"authenticator_data,omitempty"`
	// Raw assertion signature performed authenticatorData|clientDataJSON.
	// https://www.w3.org/TR/webauthn-2/#assertion-signature.
	Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	// Raw user handle returned by the authenticator, if any.
	UserHandle           []byte   `protobuf:"bytes,4,opt,name=user_handle,json=userHandle,proto3" json:"user_handle,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Authenticator assertion response. https://www.w3.org/TR/webauthn-2/#authenticatorassertionresponse

func (*AuthenticatorAssertionResponse) Descriptor

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

func (*AuthenticatorAssertionResponse) GetAuthenticatorData

func (m *AuthenticatorAssertionResponse) GetAuthenticatorData() []byte

func (*AuthenticatorAssertionResponse) GetClientDataJson

func (m *AuthenticatorAssertionResponse) GetClientDataJson() []byte

func (*AuthenticatorAssertionResponse) GetSignature

func (m *AuthenticatorAssertionResponse) GetSignature() []byte

func (*AuthenticatorAssertionResponse) GetUserHandle

func (m *AuthenticatorAssertionResponse) GetUserHandle() []byte

func (*AuthenticatorAssertionResponse) Marshal

func (m *AuthenticatorAssertionResponse) Marshal() (dAtA []byte, err error)

func (*AuthenticatorAssertionResponse) MarshalTo

func (m *AuthenticatorAssertionResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthenticatorAssertionResponse) MarshalToSizedBuffer

func (m *AuthenticatorAssertionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthenticatorAssertionResponse) ProtoMessage

func (*AuthenticatorAssertionResponse) ProtoMessage()

func (*AuthenticatorAssertionResponse) Reset

func (m *AuthenticatorAssertionResponse) Reset()

func (*AuthenticatorAssertionResponse) Size

func (m *AuthenticatorAssertionResponse) Size() (n int)

func (*AuthenticatorAssertionResponse) String

func (*AuthenticatorAssertionResponse) Unmarshal

func (m *AuthenticatorAssertionResponse) Unmarshal(dAtA []byte) error

func (*AuthenticatorAssertionResponse) XXX_DiscardUnknown

func (m *AuthenticatorAssertionResponse) XXX_DiscardUnknown()

func (*AuthenticatorAssertionResponse) XXX_Marshal

func (m *AuthenticatorAssertionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticatorAssertionResponse) XXX_Merge

func (m *AuthenticatorAssertionResponse) XXX_Merge(src proto.Message)

func (*AuthenticatorAssertionResponse) XXX_Size

func (m *AuthenticatorAssertionResponse) XXX_Size() int

func (*AuthenticatorAssertionResponse) XXX_Unmarshal

func (m *AuthenticatorAssertionResponse) XXX_Unmarshal(b []byte) error

type AuthenticatorAttestationResponse

type AuthenticatorAttestationResponse struct {
	// Raw client data JSON, exactly as signed by the authenticator.
	// https://www.w3.org/TR/webauthn-2/#dictdef-collectedclientdata.
	ClientDataJson []byte `protobuf:"bytes,1,opt,name=client_data_json,json=clientDataJson,proto3" json:"client_data_json,omitempty"`
	// Raw attestation object.
	// https://www.w3.org/TR/webauthn-2/#attestation-object
	AttestationObject    []byte   `protobuf:"bytes,2,opt,name=attestation_object,json=attestationObject,proto3" json:"attestation_object,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Attestation response from the authentication, ie, the response to a credential creation request. https://www.w3.org/TR/webauthn-2/#authenticatorattestationresponse.

func (*AuthenticatorAttestationResponse) Descriptor

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

func (*AuthenticatorAttestationResponse) GetAttestationObject

func (m *AuthenticatorAttestationResponse) GetAttestationObject() []byte

func (*AuthenticatorAttestationResponse) GetClientDataJson

func (m *AuthenticatorAttestationResponse) GetClientDataJson() []byte

func (*AuthenticatorAttestationResponse) Marshal

func (m *AuthenticatorAttestationResponse) Marshal() (dAtA []byte, err error)

func (*AuthenticatorAttestationResponse) MarshalTo

func (m *AuthenticatorAttestationResponse) MarshalTo(dAtA []byte) (int, error)

func (*AuthenticatorAttestationResponse) MarshalToSizedBuffer

func (m *AuthenticatorAttestationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthenticatorAttestationResponse) ProtoMessage

func (*AuthenticatorAttestationResponse) ProtoMessage()

func (*AuthenticatorAttestationResponse) Reset

func (*AuthenticatorAttestationResponse) Size

func (m *AuthenticatorAttestationResponse) Size() (n int)

func (*AuthenticatorAttestationResponse) String

func (*AuthenticatorAttestationResponse) Unmarshal

func (m *AuthenticatorAttestationResponse) Unmarshal(dAtA []byte) error

func (*AuthenticatorAttestationResponse) XXX_DiscardUnknown

func (m *AuthenticatorAttestationResponse) XXX_DiscardUnknown()

func (*AuthenticatorAttestationResponse) XXX_Marshal

func (m *AuthenticatorAttestationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticatorAttestationResponse) XXX_Merge

func (*AuthenticatorAttestationResponse) XXX_Size

func (m *AuthenticatorAttestationResponse) XXX_Size() int

func (*AuthenticatorAttestationResponse) XXX_Unmarshal

func (m *AuthenticatorAttestationResponse) XXX_Unmarshal(b []byte) error

type AuthenticatorSelection

type AuthenticatorSelection struct {
	// Authenticator attachment, empty means no particular attachment is
	// required.
	AuthenticatorAttachment string `` /* 130-byte string literal not displayed */
	// Resident key requirement, if true the authenticator must create a resident
	// key.
	RequireResidentKey bool `protobuf:"varint,2,opt,name=require_resident_key,json=requireResidentKey,proto3" json:"require_resident_key,omitempty"`
	// User verification requirement for authenticators.
	UserVerification     string   `protobuf:"bytes,3,opt,name=user_verification,json=userVerification,proto3" json:"user_verification,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Authenticator selection criteria. Restricts the choice of authenticator for credential creation.

func (*AuthenticatorSelection) Descriptor

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

func (*AuthenticatorSelection) GetAuthenticatorAttachment

func (m *AuthenticatorSelection) GetAuthenticatorAttachment() string

func (*AuthenticatorSelection) GetRequireResidentKey

func (m *AuthenticatorSelection) GetRequireResidentKey() bool

func (*AuthenticatorSelection) GetUserVerification

func (m *AuthenticatorSelection) GetUserVerification() string

func (*AuthenticatorSelection) Marshal

func (m *AuthenticatorSelection) Marshal() (dAtA []byte, err error)

func (*AuthenticatorSelection) MarshalTo

func (m *AuthenticatorSelection) MarshalTo(dAtA []byte) (int, error)

func (*AuthenticatorSelection) MarshalToSizedBuffer

func (m *AuthenticatorSelection) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuthenticatorSelection) ProtoMessage

func (*AuthenticatorSelection) ProtoMessage()

func (*AuthenticatorSelection) Reset

func (m *AuthenticatorSelection) Reset()

func (*AuthenticatorSelection) Size

func (m *AuthenticatorSelection) Size() (n int)

func (*AuthenticatorSelection) String

func (m *AuthenticatorSelection) String() string

func (*AuthenticatorSelection) Unmarshal

func (m *AuthenticatorSelection) Unmarshal(dAtA []byte) error

func (*AuthenticatorSelection) XXX_DiscardUnknown

func (m *AuthenticatorSelection) XXX_DiscardUnknown()

func (*AuthenticatorSelection) XXX_Marshal

func (m *AuthenticatorSelection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticatorSelection) XXX_Merge

func (m *AuthenticatorSelection) XXX_Merge(src proto.Message)

func (*AuthenticatorSelection) XXX_Size

func (m *AuthenticatorSelection) XXX_Size() int

func (*AuthenticatorSelection) XXX_Unmarshal

func (m *AuthenticatorSelection) XXX_Unmarshal(b []byte) error

type CredentialAssertion

type CredentialAssertion struct {
	PublicKey            *PublicKeyCredentialRequestOptions `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

Credential assertion used for login ceremonies.

func (*CredentialAssertion) Descriptor

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

func (*CredentialAssertion) GetPublicKey

func (*CredentialAssertion) Marshal

func (m *CredentialAssertion) Marshal() (dAtA []byte, err error)

func (*CredentialAssertion) MarshalTo

func (m *CredentialAssertion) MarshalTo(dAtA []byte) (int, error)

func (*CredentialAssertion) MarshalToSizedBuffer

func (m *CredentialAssertion) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CredentialAssertion) ProtoMessage

func (*CredentialAssertion) ProtoMessage()

func (*CredentialAssertion) Reset

func (m *CredentialAssertion) Reset()

func (*CredentialAssertion) Size

func (m *CredentialAssertion) Size() (n int)

func (*CredentialAssertion) String

func (m *CredentialAssertion) String() string

func (*CredentialAssertion) Unmarshal

func (m *CredentialAssertion) Unmarshal(dAtA []byte) error

func (*CredentialAssertion) XXX_DiscardUnknown

func (m *CredentialAssertion) XXX_DiscardUnknown()

func (*CredentialAssertion) XXX_Marshal

func (m *CredentialAssertion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CredentialAssertion) XXX_Merge

func (m *CredentialAssertion) XXX_Merge(src proto.Message)

func (*CredentialAssertion) XXX_Size

func (m *CredentialAssertion) XXX_Size() int

func (*CredentialAssertion) XXX_Unmarshal

func (m *CredentialAssertion) XXX_Unmarshal(b []byte) error

type CredentialAssertionResponse

type CredentialAssertionResponse struct {
	// Type of the credential, usually "public-key".
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Raw Credential ID.
	RawId []byte `protobuf:"bytes,2,opt,name=raw_id,json=rawId,proto3" json:"raw_id,omitempty"`
	// Assertion response from the authenticator.
	Response *AuthenticatorAssertionResponse `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
	// Extensions supplied by the authenticator.
	Extensions           *AuthenticationExtensionsClientOutputs `protobuf:"bytes,4,opt,name=extensions,proto3" json:"extensions,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                               `json:"-"`
	XXX_unrecognized     []byte                                 `json:"-"`
	XXX_sizecache        int32                                  `json:"-"`
}

Assertion response returned by the authenticator. Refer to navigator.credentials.get in your browser.

func (*CredentialAssertionResponse) Descriptor

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

func (*CredentialAssertionResponse) GetExtensions

func (*CredentialAssertionResponse) GetRawId

func (m *CredentialAssertionResponse) GetRawId() []byte

func (*CredentialAssertionResponse) GetResponse

func (*CredentialAssertionResponse) GetType

func (m *CredentialAssertionResponse) GetType() string

func (*CredentialAssertionResponse) Marshal

func (m *CredentialAssertionResponse) Marshal() (dAtA []byte, err error)

func (*CredentialAssertionResponse) MarshalTo

func (m *CredentialAssertionResponse) MarshalTo(dAtA []byte) (int, error)

func (*CredentialAssertionResponse) MarshalToSizedBuffer

func (m *CredentialAssertionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CredentialAssertionResponse) ProtoMessage

func (*CredentialAssertionResponse) ProtoMessage()

func (*CredentialAssertionResponse) Reset

func (m *CredentialAssertionResponse) Reset()

func (*CredentialAssertionResponse) Size

func (m *CredentialAssertionResponse) Size() (n int)

func (*CredentialAssertionResponse) String

func (m *CredentialAssertionResponse) String() string

func (*CredentialAssertionResponse) Unmarshal

func (m *CredentialAssertionResponse) Unmarshal(dAtA []byte) error

func (*CredentialAssertionResponse) XXX_DiscardUnknown

func (m *CredentialAssertionResponse) XXX_DiscardUnknown()

func (*CredentialAssertionResponse) XXX_Marshal

func (m *CredentialAssertionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CredentialAssertionResponse) XXX_Merge

func (m *CredentialAssertionResponse) XXX_Merge(src proto.Message)

func (*CredentialAssertionResponse) XXX_Size

func (m *CredentialAssertionResponse) XXX_Size() int

func (*CredentialAssertionResponse) XXX_Unmarshal

func (m *CredentialAssertionResponse) XXX_Unmarshal(b []byte) error

type CredentialCreation

type CredentialCreation struct {
	PublicKey            *PublicKeyCredentialCreationOptions `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

Credential creation used for registration ceremonies.

func (*CredentialCreation) Descriptor

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

func (*CredentialCreation) GetPublicKey

func (*CredentialCreation) Marshal

func (m *CredentialCreation) Marshal() (dAtA []byte, err error)

func (*CredentialCreation) MarshalTo

func (m *CredentialCreation) MarshalTo(dAtA []byte) (int, error)

func (*CredentialCreation) MarshalToSizedBuffer

func (m *CredentialCreation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CredentialCreation) ProtoMessage

func (*CredentialCreation) ProtoMessage()

func (*CredentialCreation) Reset

func (m *CredentialCreation) Reset()

func (*CredentialCreation) Size

func (m *CredentialCreation) Size() (n int)

func (*CredentialCreation) String

func (m *CredentialCreation) String() string

func (*CredentialCreation) Unmarshal

func (m *CredentialCreation) Unmarshal(dAtA []byte) error

func (*CredentialCreation) XXX_DiscardUnknown

func (m *CredentialCreation) XXX_DiscardUnknown()

func (*CredentialCreation) XXX_Marshal

func (m *CredentialCreation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CredentialCreation) XXX_Merge

func (m *CredentialCreation) XXX_Merge(src proto.Message)

func (*CredentialCreation) XXX_Size

func (m *CredentialCreation) XXX_Size() int

func (*CredentialCreation) XXX_Unmarshal

func (m *CredentialCreation) XXX_Unmarshal(b []byte) error

type CredentialCreationResponse

type CredentialCreationResponse struct {
	// Type of the credential, usually "public-key".
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Raw Credential ID.
	RawId []byte `protobuf:"bytes,2,opt,name=raw_id,json=rawId,proto3" json:"raw_id,omitempty"`
	// Attestation response from the authenticator.
	Response *AuthenticatorAttestationResponse `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
	// Extensions supplied by the authenticator.
	Extensions           *AuthenticationExtensionsClientOutputs `protobuf:"bytes,4,opt,name=extensions,proto3" json:"extensions,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                               `json:"-"`
	XXX_unrecognized     []byte                                 `json:"-"`
	XXX_sizecache        int32                                  `json:"-"`
}

Credential creation response returned by the authenticator. Refer to navigator.credentials.create in your browser.

func (*CredentialCreationResponse) Descriptor

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

func (*CredentialCreationResponse) GetExtensions

func (*CredentialCreationResponse) GetRawId

func (m *CredentialCreationResponse) GetRawId() []byte

func (*CredentialCreationResponse) GetResponse

func (*CredentialCreationResponse) GetType

func (m *CredentialCreationResponse) GetType() string

func (*CredentialCreationResponse) Marshal

func (m *CredentialCreationResponse) Marshal() (dAtA []byte, err error)

func (*CredentialCreationResponse) MarshalTo

func (m *CredentialCreationResponse) MarshalTo(dAtA []byte) (int, error)

func (*CredentialCreationResponse) MarshalToSizedBuffer

func (m *CredentialCreationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CredentialCreationResponse) ProtoMessage

func (*CredentialCreationResponse) ProtoMessage()

func (*CredentialCreationResponse) Reset

func (m *CredentialCreationResponse) Reset()

func (*CredentialCreationResponse) Size

func (m *CredentialCreationResponse) Size() (n int)

func (*CredentialCreationResponse) String

func (m *CredentialCreationResponse) String() string

func (*CredentialCreationResponse) Unmarshal

func (m *CredentialCreationResponse) Unmarshal(dAtA []byte) error

func (*CredentialCreationResponse) XXX_DiscardUnknown

func (m *CredentialCreationResponse) XXX_DiscardUnknown()

func (*CredentialCreationResponse) XXX_Marshal

func (m *CredentialCreationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CredentialCreationResponse) XXX_Merge

func (m *CredentialCreationResponse) XXX_Merge(src proto.Message)

func (*CredentialCreationResponse) XXX_Size

func (m *CredentialCreationResponse) XXX_Size() int

func (*CredentialCreationResponse) XXX_Unmarshal

func (m *CredentialCreationResponse) XXX_Unmarshal(b []byte) error

type CredentialDescriptor

type CredentialDescriptor struct {
	// Type of the credential, usually "public-key".
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Raw Credential ID.
	Id                   []byte   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Public key credential descriptor. https://www.w3.org/TR/webauthn-2/#dictdef-publickeycredentialdescriptor.

func (*CredentialDescriptor) Descriptor

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

func (*CredentialDescriptor) GetId

func (m *CredentialDescriptor) GetId() []byte

func (*CredentialDescriptor) GetType

func (m *CredentialDescriptor) GetType() string

func (*CredentialDescriptor) Marshal

func (m *CredentialDescriptor) Marshal() (dAtA []byte, err error)

func (*CredentialDescriptor) MarshalTo

func (m *CredentialDescriptor) MarshalTo(dAtA []byte) (int, error)

func (*CredentialDescriptor) MarshalToSizedBuffer

func (m *CredentialDescriptor) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CredentialDescriptor) ProtoMessage

func (*CredentialDescriptor) ProtoMessage()

func (*CredentialDescriptor) Reset

func (m *CredentialDescriptor) Reset()

func (*CredentialDescriptor) Size

func (m *CredentialDescriptor) Size() (n int)

func (*CredentialDescriptor) String

func (m *CredentialDescriptor) String() string

func (*CredentialDescriptor) Unmarshal

func (m *CredentialDescriptor) Unmarshal(dAtA []byte) error

func (*CredentialDescriptor) XXX_DiscardUnknown

func (m *CredentialDescriptor) XXX_DiscardUnknown()

func (*CredentialDescriptor) XXX_Marshal

func (m *CredentialDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CredentialDescriptor) XXX_Merge

func (m *CredentialDescriptor) XXX_Merge(src proto.Message)

func (*CredentialDescriptor) XXX_Size

func (m *CredentialDescriptor) XXX_Size() int

func (*CredentialDescriptor) XXX_Unmarshal

func (m *CredentialDescriptor) XXX_Unmarshal(b []byte) error

type CredentialParameter

type CredentialParameter struct {
	// Credential type, usually "public-key".
	// https://www.w3.org/TR/webauthn-2/#enumdef-publickeycredentialtype.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// COSE algorithm specifier.
	// Most authenticators support exclusively ES256(-7).
	// https://www.w3.org/TR/webauthn-2/#typedefdef-cosealgorithmidentifier.
	Alg                  int32    `protobuf:"varint,2,opt,name=alg,proto3" json:"alg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Parameters for credential creation. https://www.w3.org/TR/webauthn-2/#dictdef-publickeycredentialparameters.

func (*CredentialParameter) Descriptor

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

func (*CredentialParameter) GetAlg

func (m *CredentialParameter) GetAlg() int32

func (*CredentialParameter) GetType

func (m *CredentialParameter) GetType() string

func (*CredentialParameter) Marshal

func (m *CredentialParameter) Marshal() (dAtA []byte, err error)

func (*CredentialParameter) MarshalTo

func (m *CredentialParameter) MarshalTo(dAtA []byte) (int, error)

func (*CredentialParameter) MarshalToSizedBuffer

func (m *CredentialParameter) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CredentialParameter) ProtoMessage

func (*CredentialParameter) ProtoMessage()

func (*CredentialParameter) Reset

func (m *CredentialParameter) Reset()

func (*CredentialParameter) Size

func (m *CredentialParameter) Size() (n int)

func (*CredentialParameter) String

func (m *CredentialParameter) String() string

func (*CredentialParameter) Unmarshal

func (m *CredentialParameter) Unmarshal(dAtA []byte) error

func (*CredentialParameter) XXX_DiscardUnknown

func (m *CredentialParameter) XXX_DiscardUnknown()

func (*CredentialParameter) XXX_Marshal

func (m *CredentialParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CredentialParameter) XXX_Merge

func (m *CredentialParameter) XXX_Merge(src proto.Message)

func (*CredentialParameter) XXX_Size

func (m *CredentialParameter) XXX_Size() int

func (*CredentialParameter) XXX_Unmarshal

func (m *CredentialParameter) XXX_Unmarshal(b []byte) error

type CredentialPropertiesOutput

type CredentialPropertiesOutput struct {
	// If true, the created credential is a resident key (regardless of the
	// AuthenticatorSelection.require_resident_key value).
	// OPTIONAL by specification.
	Rk                   bool     `protobuf:"varint,1,opt,name=rk,proto3" json:"rk,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

CredentialPropertiesOutput is the output of the credProps extension.

func (*CredentialPropertiesOutput) Descriptor

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

func (*CredentialPropertiesOutput) GetRk

func (m *CredentialPropertiesOutput) GetRk() bool

func (*CredentialPropertiesOutput) Marshal

func (m *CredentialPropertiesOutput) Marshal() (dAtA []byte, err error)

func (*CredentialPropertiesOutput) MarshalTo

func (m *CredentialPropertiesOutput) MarshalTo(dAtA []byte) (int, error)

func (*CredentialPropertiesOutput) MarshalToSizedBuffer

func (m *CredentialPropertiesOutput) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CredentialPropertiesOutput) ProtoMessage

func (*CredentialPropertiesOutput) ProtoMessage()

func (*CredentialPropertiesOutput) Reset

func (m *CredentialPropertiesOutput) Reset()

func (*CredentialPropertiesOutput) Size

func (m *CredentialPropertiesOutput) Size() (n int)

func (*CredentialPropertiesOutput) String

func (m *CredentialPropertiesOutput) String() string

func (*CredentialPropertiesOutput) Unmarshal

func (m *CredentialPropertiesOutput) Unmarshal(dAtA []byte) error

func (*CredentialPropertiesOutput) XXX_DiscardUnknown

func (m *CredentialPropertiesOutput) XXX_DiscardUnknown()

func (*CredentialPropertiesOutput) XXX_Marshal

func (m *CredentialPropertiesOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CredentialPropertiesOutput) XXX_Merge

func (m *CredentialPropertiesOutput) XXX_Merge(src proto.Message)

func (*CredentialPropertiesOutput) XXX_Size

func (m *CredentialPropertiesOutput) XXX_Size() int

func (*CredentialPropertiesOutput) XXX_Unmarshal

func (m *CredentialPropertiesOutput) XXX_Unmarshal(b []byte) error

type PublicKeyCredentialCreationOptions

type PublicKeyCredentialCreationOptions struct {
	// Raw challenge used for creation.
	Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"`
	// Relying party information.
	Rp *RelyingPartyEntity `protobuf:"bytes,2,opt,name=rp,proto3" json:"rp,omitempty"`
	// User information.
	User *UserEntity `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
	// Desired properties for the credential to be created, from most to least
	// preferred.
	CredentialParameters []*CredentialParameter `protobuf:"bytes,4,rep,name=credential_parameters,json=credentialParameters,proto3" json:"credential_parameters,omitempty"`
	// Timeout in milliseconds.
	TimeoutMs int64 `protobuf:"varint,5,opt,name=timeout_ms,json=timeoutMs,proto3" json:"timeout_ms,omitempty"`
	// Credentials excluded from the ceremony.
	ExcludeCredentials []*CredentialDescriptor `protobuf:"bytes,6,rep,name=exclude_credentials,json=excludeCredentials,proto3" json:"exclude_credentials,omitempty"`
	// Attestation requested, defaulting to "none".
	// https://www.w3.org/TR/webauthn-2/#enumdef-attestationconveyancepreference.
	Attestation string `protobuf:"bytes,7,opt,name=attestation,proto3" json:"attestation,omitempty"`
	// Extensions supplied by the Relying Party.
	Extensions *AuthenticationExtensionsClientInputs `protobuf:"bytes,8,opt,name=extensions,proto3" json:"extensions,omitempty"`
	// Authenticator selection criteria for the new credential.
	AuthenticatorSelection *AuthenticatorSelection `` /* 127-byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{}                `json:"-"`
	XXX_unrecognized       []byte                  `json:"-"`
	XXX_sizecache          int32                   `json:"-"`
}

Request options necessary for credential creation, aka registration ceremonies. See https://www.w3.org/TR/webauthn-2/#dictdef-publickeycredentialcreationoptions or refer to navigator.credentials.create in your browser.

func (*PublicKeyCredentialCreationOptions) Descriptor

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

func (*PublicKeyCredentialCreationOptions) GetAttestation

func (m *PublicKeyCredentialCreationOptions) GetAttestation() string

func (*PublicKeyCredentialCreationOptions) GetAuthenticatorSelection

func (m *PublicKeyCredentialCreationOptions) GetAuthenticatorSelection() *AuthenticatorSelection

func (*PublicKeyCredentialCreationOptions) GetChallenge

func (m *PublicKeyCredentialCreationOptions) GetChallenge() []byte

func (*PublicKeyCredentialCreationOptions) GetCredentialParameters

func (m *PublicKeyCredentialCreationOptions) GetCredentialParameters() []*CredentialParameter

func (*PublicKeyCredentialCreationOptions) GetExcludeCredentials

func (m *PublicKeyCredentialCreationOptions) GetExcludeCredentials() []*CredentialDescriptor

func (*PublicKeyCredentialCreationOptions) GetExtensions

func (*PublicKeyCredentialCreationOptions) GetRp

func (*PublicKeyCredentialCreationOptions) GetTimeoutMs

func (m *PublicKeyCredentialCreationOptions) GetTimeoutMs() int64

func (*PublicKeyCredentialCreationOptions) GetUser

func (*PublicKeyCredentialCreationOptions) Marshal

func (m *PublicKeyCredentialCreationOptions) Marshal() (dAtA []byte, err error)

func (*PublicKeyCredentialCreationOptions) MarshalTo

func (m *PublicKeyCredentialCreationOptions) MarshalTo(dAtA []byte) (int, error)

func (*PublicKeyCredentialCreationOptions) MarshalToSizedBuffer

func (m *PublicKeyCredentialCreationOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PublicKeyCredentialCreationOptions) ProtoMessage

func (*PublicKeyCredentialCreationOptions) ProtoMessage()

func (*PublicKeyCredentialCreationOptions) Reset

func (*PublicKeyCredentialCreationOptions) Size

func (*PublicKeyCredentialCreationOptions) String

func (*PublicKeyCredentialCreationOptions) Unmarshal

func (m *PublicKeyCredentialCreationOptions) Unmarshal(dAtA []byte) error

func (*PublicKeyCredentialCreationOptions) XXX_DiscardUnknown

func (m *PublicKeyCredentialCreationOptions) XXX_DiscardUnknown()

func (*PublicKeyCredentialCreationOptions) XXX_Marshal

func (m *PublicKeyCredentialCreationOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PublicKeyCredentialCreationOptions) XXX_Merge

func (*PublicKeyCredentialCreationOptions) XXX_Size

func (*PublicKeyCredentialCreationOptions) XXX_Unmarshal

func (m *PublicKeyCredentialCreationOptions) XXX_Unmarshal(b []byte) error

type PublicKeyCredentialRequestOptions

type PublicKeyCredentialRequestOptions struct {
	// Raw challenge used for assertion.
	Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"`
	// Timeout in milliseconds.
	TimeoutMs int64 `protobuf:"varint,2,opt,name=timeout_ms,json=timeoutMs,proto3" json:"timeout_ms,omitempty"`
	// Relying Party ID.
	RpId string `protobuf:"bytes,3,opt,name=rp_id,json=rpId,proto3" json:"rp_id,omitempty"`
	// Allowed credentials for assertion.
	AllowCredentials []*CredentialDescriptor `protobuf:"bytes,4,rep,name=allow_credentials,json=allowCredentials,proto3" json:"allow_credentials,omitempty"`
	// Extensions supplied by the Relying Party.
	Extensions *AuthenticationExtensionsClientInputs `protobuf:"bytes,5,opt,name=extensions,proto3" json:"extensions,omitempty"`
	// User verification requirement.
	UserVerification     string   `protobuf:"bytes,6,opt,name=user_verification,json=userVerification,proto3" json:"user_verification,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request options necessary for credential assertions, aka login ceremonies. See https://www.w3.org/TR/webauthn-2/#dictionary-assertion-options or refer to navigator.credentials.get in your browser.

func (*PublicKeyCredentialRequestOptions) Descriptor

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

func (*PublicKeyCredentialRequestOptions) GetAllowCredentials

func (m *PublicKeyCredentialRequestOptions) GetAllowCredentials() []*CredentialDescriptor

func (*PublicKeyCredentialRequestOptions) GetChallenge

func (m *PublicKeyCredentialRequestOptions) GetChallenge() []byte

func (*PublicKeyCredentialRequestOptions) GetExtensions

func (*PublicKeyCredentialRequestOptions) GetRpId

func (*PublicKeyCredentialRequestOptions) GetTimeoutMs

func (m *PublicKeyCredentialRequestOptions) GetTimeoutMs() int64

func (*PublicKeyCredentialRequestOptions) GetUserVerification

func (m *PublicKeyCredentialRequestOptions) GetUserVerification() string

func (*PublicKeyCredentialRequestOptions) Marshal

func (m *PublicKeyCredentialRequestOptions) Marshal() (dAtA []byte, err error)

func (*PublicKeyCredentialRequestOptions) MarshalTo

func (m *PublicKeyCredentialRequestOptions) MarshalTo(dAtA []byte) (int, error)

func (*PublicKeyCredentialRequestOptions) MarshalToSizedBuffer

func (m *PublicKeyCredentialRequestOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PublicKeyCredentialRequestOptions) ProtoMessage

func (*PublicKeyCredentialRequestOptions) ProtoMessage()

func (*PublicKeyCredentialRequestOptions) Reset

func (*PublicKeyCredentialRequestOptions) Size

func (m *PublicKeyCredentialRequestOptions) Size() (n int)

func (*PublicKeyCredentialRequestOptions) String

func (*PublicKeyCredentialRequestOptions) Unmarshal

func (m *PublicKeyCredentialRequestOptions) Unmarshal(dAtA []byte) error

func (*PublicKeyCredentialRequestOptions) XXX_DiscardUnknown

func (m *PublicKeyCredentialRequestOptions) XXX_DiscardUnknown()

func (*PublicKeyCredentialRequestOptions) XXX_Marshal

func (m *PublicKeyCredentialRequestOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PublicKeyCredentialRequestOptions) XXX_Merge

func (*PublicKeyCredentialRequestOptions) XXX_Size

func (m *PublicKeyCredentialRequestOptions) XXX_Size() int

func (*PublicKeyCredentialRequestOptions) XXX_Unmarshal

func (m *PublicKeyCredentialRequestOptions) XXX_Unmarshal(b []byte) error

type RelyingPartyEntity

type RelyingPartyEntity 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Relying Party information. See https://www.w3.org/TR/webauthn-2/#dictdef-publickeycredentialrpentity and https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialCreationOptions/rp.

func (*RelyingPartyEntity) Descriptor

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

func (*RelyingPartyEntity) GetId

func (m *RelyingPartyEntity) GetId() string

func (*RelyingPartyEntity) GetName

func (m *RelyingPartyEntity) GetName() string

func (*RelyingPartyEntity) Marshal

func (m *RelyingPartyEntity) Marshal() (dAtA []byte, err error)

func (*RelyingPartyEntity) MarshalTo

func (m *RelyingPartyEntity) MarshalTo(dAtA []byte) (int, error)

func (*RelyingPartyEntity) MarshalToSizedBuffer

func (m *RelyingPartyEntity) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RelyingPartyEntity) ProtoMessage

func (*RelyingPartyEntity) ProtoMessage()

func (*RelyingPartyEntity) Reset

func (m *RelyingPartyEntity) Reset()

func (*RelyingPartyEntity) Size

func (m *RelyingPartyEntity) Size() (n int)

func (*RelyingPartyEntity) String

func (m *RelyingPartyEntity) String() string

func (*RelyingPartyEntity) Unmarshal

func (m *RelyingPartyEntity) Unmarshal(dAtA []byte) error

func (*RelyingPartyEntity) XXX_DiscardUnknown

func (m *RelyingPartyEntity) XXX_DiscardUnknown()

func (*RelyingPartyEntity) XXX_Marshal

func (m *RelyingPartyEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RelyingPartyEntity) XXX_Merge

func (m *RelyingPartyEntity) XXX_Merge(src proto.Message)

func (*RelyingPartyEntity) XXX_Size

func (m *RelyingPartyEntity) XXX_Size() int

func (*RelyingPartyEntity) XXX_Unmarshal

func (m *RelyingPartyEntity) XXX_Unmarshal(b []byte) error

type UserEntity

type UserEntity struct {
	// Raw ID of the user.
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Human-palatable name for a user account.
	// The Relying Party _may_ let the user choose this value.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Human-palatable name for the user account, intended only for display.
	// The Relying Party _should_ let the user choose this value.
	DisplayName          string   `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

User information. See https://www.w3.org/TR/webauthn-2/#dictdef-publickeycredentialuserentity and https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialCreationOptions/user.

func (*UserEntity) Descriptor

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

func (*UserEntity) GetDisplayName

func (m *UserEntity) GetDisplayName() string

func (*UserEntity) GetId

func (m *UserEntity) GetId() []byte

func (*UserEntity) GetName

func (m *UserEntity) GetName() string

func (*UserEntity) Marshal

func (m *UserEntity) Marshal() (dAtA []byte, err error)

func (*UserEntity) MarshalTo

func (m *UserEntity) MarshalTo(dAtA []byte) (int, error)

func (*UserEntity) MarshalToSizedBuffer

func (m *UserEntity) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UserEntity) ProtoMessage

func (*UserEntity) ProtoMessage()

func (*UserEntity) Reset

func (m *UserEntity) Reset()

func (*UserEntity) Size

func (m *UserEntity) Size() (n int)

func (*UserEntity) String

func (m *UserEntity) String() string

func (*UserEntity) Unmarshal

func (m *UserEntity) Unmarshal(dAtA []byte) error

func (*UserEntity) XXX_DiscardUnknown

func (m *UserEntity) XXX_DiscardUnknown()

func (*UserEntity) XXX_Marshal

func (m *UserEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserEntity) XXX_Merge

func (m *UserEntity) XXX_Merge(src proto.Message)

func (*UserEntity) XXX_Size

func (m *UserEntity) XXX_Size() int

func (*UserEntity) XXX_Unmarshal

func (m *UserEntity) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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