Documentation
¶
Overview ¶
Package webauthn implements the WebAuthn domain. This domain allows configuring virtual authenticators to test the WebAuthn API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddVirtualAuthenticatorArgs ¶
type AddVirtualAuthenticatorArgs struct {
Options VirtualAuthenticatorOptions `json:"options"` // No description.
}
AddVirtualAuthenticatorArgs represents the arguments for AddVirtualAuthenticator in the WebAuthn domain.
func NewAddVirtualAuthenticatorArgs ¶
func NewAddVirtualAuthenticatorArgs(options VirtualAuthenticatorOptions) *AddVirtualAuthenticatorArgs
NewAddVirtualAuthenticatorArgs initializes AddVirtualAuthenticatorArgs with the required arguments.
type AddVirtualAuthenticatorReply ¶
type AddVirtualAuthenticatorReply struct {
AuthenticatorID AuthenticatorID `json:"authenticatorId"` // No description.
}
AddVirtualAuthenticatorReply represents the return values for AddVirtualAuthenticator in the WebAuthn domain.
type AuthenticatorProtocol ¶
type AuthenticatorProtocol string
AuthenticatorProtocol
const ( AuthenticatorProtocolNotSet AuthenticatorProtocol = "" AuthenticatorProtocolU2F AuthenticatorProtocol = "u2f" AuthenticatorProtocolCTAP2 AuthenticatorProtocol = "ctap2" )
AuthenticatorProtocol as enums.
func (AuthenticatorProtocol) String ¶
func (e AuthenticatorProtocol) String() string
func (AuthenticatorProtocol) Valid ¶
func (e AuthenticatorProtocol) Valid() bool
type AuthenticatorTransport ¶
type AuthenticatorTransport string
AuthenticatorTransport
const ( AuthenticatorTransportNotSet AuthenticatorTransport = "" AuthenticatorTransportUSB AuthenticatorTransport = "usb" AuthenticatorTransportNFC AuthenticatorTransport = "nfc" AuthenticatorTransportBLE AuthenticatorTransport = "ble" AuthenticatorTransportCable AuthenticatorTransport = "cable" AuthenticatorTransportInternal AuthenticatorTransport = "internal" )
AuthenticatorTransport as enums.
func (AuthenticatorTransport) String ¶
func (e AuthenticatorTransport) String() string
func (AuthenticatorTransport) Valid ¶
func (e AuthenticatorTransport) Valid() bool
type RemoveVirtualAuthenticatorArgs ¶
type RemoveVirtualAuthenticatorArgs struct {
AuthenticatorID AuthenticatorID `json:"authenticatorId"` // No description.
}
RemoveVirtualAuthenticatorArgs represents the arguments for RemoveVirtualAuthenticator in the WebAuthn domain.
func NewRemoveVirtualAuthenticatorArgs ¶
func NewRemoveVirtualAuthenticatorArgs(authenticatorID AuthenticatorID) *RemoveVirtualAuthenticatorArgs
NewRemoveVirtualAuthenticatorArgs initializes RemoveVirtualAuthenticatorArgs with the required arguments.
type VirtualAuthenticatorOptions ¶
type VirtualAuthenticatorOptions struct {
Protocol AuthenticatorProtocol `json:"protocol"` // No description.
Transport AuthenticatorTransport `json:"transport"` // No description.
HasResidentKey bool `json:"hasResidentKey"` // No description.
HasUserVerification bool `json:"hasUserVerification"` // No description.
}
VirtualAuthenticatorOptions