Documentation ¶
Overview ¶
Package webauthn provides the Chrome DevTools Protocol commands, types, and events for the WebAuthn domain.
This domain allows configuring virtual authenticators to test the WebAuthn API.
Generated by the cdproto-gen command.
Index ¶
- Constants
- type AddVirtualAuthenticatorParams
- func (p *AddVirtualAuthenticatorParams) Do(ctx context.Context) (authenticatorID AuthenticatorID, err error)
- func (v AddVirtualAuthenticatorParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v AddVirtualAuthenticatorParams) MarshalJSON() ([]byte, error)
- func (v *AddVirtualAuthenticatorParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *AddVirtualAuthenticatorParams) UnmarshalJSON(data []byte) error
- type AddVirtualAuthenticatorReturns
- type AuthenticatorID
- type AuthenticatorProtocol
- func (t AuthenticatorProtocol) MarshalEasyJSON(out *jwriter.Writer)
- func (t AuthenticatorProtocol) MarshalJSON() ([]byte, error)
- func (t AuthenticatorProtocol) String() string
- func (t *AuthenticatorProtocol) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *AuthenticatorProtocol) UnmarshalJSON(buf []byte) error
- type AuthenticatorTransport
- func (t AuthenticatorTransport) MarshalEasyJSON(out *jwriter.Writer)
- func (t AuthenticatorTransport) MarshalJSON() ([]byte, error)
- func (t AuthenticatorTransport) String() string
- func (t *AuthenticatorTransport) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *AuthenticatorTransport) UnmarshalJSON(buf []byte) error
- type DisableParams
- type EnableParams
- type RemoveVirtualAuthenticatorParams
- func (p *RemoveVirtualAuthenticatorParams) Do(ctx context.Context) (err error)
- func (v RemoveVirtualAuthenticatorParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v RemoveVirtualAuthenticatorParams) MarshalJSON() ([]byte, error)
- func (v *RemoveVirtualAuthenticatorParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *RemoveVirtualAuthenticatorParams) UnmarshalJSON(data []byte) error
- type VirtualAuthenticatorOptions
Constants ¶
const ( CommandEnable = "WebAuthn.enable" CommandDisable = "WebAuthn.disable" CommandAddVirtualAuthenticator = "WebAuthn.addVirtualAuthenticator" CommandRemoveVirtualAuthenticator = "WebAuthn.removeVirtualAuthenticator" )
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddVirtualAuthenticatorParams ¶
type AddVirtualAuthenticatorParams struct {
Options *VirtualAuthenticatorOptions `json:"options"`
}
AddVirtualAuthenticatorParams creates and adds a virtual authenticator.
func AddVirtualAuthenticator ¶
func AddVirtualAuthenticator(options *VirtualAuthenticatorOptions) *AddVirtualAuthenticatorParams
AddVirtualAuthenticator creates and adds a virtual authenticator.
See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#method-addVirtualAuthenticator
parameters:
options
func (*AddVirtualAuthenticatorParams) Do ¶
func (p *AddVirtualAuthenticatorParams) Do(ctx context.Context) (authenticatorID AuthenticatorID, err error)
Do executes WebAuthn.addVirtualAuthenticator against the provided context.
returns:
authenticatorID
func (AddVirtualAuthenticatorParams) MarshalEasyJSON ¶
func (v AddVirtualAuthenticatorParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AddVirtualAuthenticatorParams) MarshalJSON ¶
func (v AddVirtualAuthenticatorParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AddVirtualAuthenticatorParams) UnmarshalEasyJSON ¶
func (v *AddVirtualAuthenticatorParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AddVirtualAuthenticatorParams) UnmarshalJSON ¶
func (v *AddVirtualAuthenticatorParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AddVirtualAuthenticatorReturns ¶
type AddVirtualAuthenticatorReturns struct {
AuthenticatorID AuthenticatorID `json:"authenticatorId,omitempty"`
}
AddVirtualAuthenticatorReturns return values.
func (AddVirtualAuthenticatorReturns) MarshalEasyJSON ¶
func (v AddVirtualAuthenticatorReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AddVirtualAuthenticatorReturns) MarshalJSON ¶
func (v AddVirtualAuthenticatorReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AddVirtualAuthenticatorReturns) UnmarshalEasyJSON ¶
func (v *AddVirtualAuthenticatorReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AddVirtualAuthenticatorReturns) UnmarshalJSON ¶
func (v *AddVirtualAuthenticatorReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AuthenticatorID ¶
type AuthenticatorID string
AuthenticatorID [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#type-AuthenticatorId
func (AuthenticatorID) String ¶
func (t AuthenticatorID) String() string
String returns the AuthenticatorID as string value.
type AuthenticatorProtocol ¶
type AuthenticatorProtocol string
AuthenticatorProtocol [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#type-AuthenticatorProtocol
const ( AuthenticatorProtocolU2f AuthenticatorProtocol = "u2f" AuthenticatorProtocolCtap2 AuthenticatorProtocol = "ctap2" )
AuthenticatorProtocol values.
func (AuthenticatorProtocol) MarshalEasyJSON ¶
func (t AuthenticatorProtocol) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (AuthenticatorProtocol) MarshalJSON ¶
func (t AuthenticatorProtocol) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (AuthenticatorProtocol) String ¶
func (t AuthenticatorProtocol) String() string
String returns the AuthenticatorProtocol as string value.
func (*AuthenticatorProtocol) UnmarshalEasyJSON ¶
func (t *AuthenticatorProtocol) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*AuthenticatorProtocol) UnmarshalJSON ¶
func (t *AuthenticatorProtocol) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type AuthenticatorTransport ¶
type AuthenticatorTransport string
AuthenticatorTransport [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#type-AuthenticatorTransport
const ( AuthenticatorTransportUsb AuthenticatorTransport = "usb" AuthenticatorTransportNfc AuthenticatorTransport = "nfc" AuthenticatorTransportBle AuthenticatorTransport = "ble" AuthenticatorTransportCable AuthenticatorTransport = "cable" AuthenticatorTransportInternal AuthenticatorTransport = "internal" )
AuthenticatorTransport values.
func (AuthenticatorTransport) MarshalEasyJSON ¶
func (t AuthenticatorTransport) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (AuthenticatorTransport) MarshalJSON ¶
func (t AuthenticatorTransport) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (AuthenticatorTransport) String ¶
func (t AuthenticatorTransport) String() string
String returns the AuthenticatorTransport as string value.
func (*AuthenticatorTransport) UnmarshalEasyJSON ¶
func (t *AuthenticatorTransport) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*AuthenticatorTransport) UnmarshalJSON ¶
func (t *AuthenticatorTransport) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type DisableParams ¶
type DisableParams struct{}
DisableParams disable the WebAuthn domain.
func Disable ¶
func Disable() *DisableParams
Disable disable the WebAuthn domain.
See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#method-disable
func (*DisableParams) Do ¶
func (p *DisableParams) Do(ctx context.Context) (err error)
Do executes WebAuthn.disable against the provided context.
func (DisableParams) MarshalEasyJSON ¶
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DisableParams) MarshalJSON ¶
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DisableParams) UnmarshalEasyJSON ¶
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DisableParams) UnmarshalJSON ¶
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams ¶
type EnableParams struct{}
EnableParams enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator.
func Enable ¶
func Enable() *EnableParams
Enable enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator.
See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#method-enable
func (*EnableParams) Do ¶
func (p *EnableParams) Do(ctx context.Context) (err error)
Do executes WebAuthn.enable against the provided context.
func (EnableParams) MarshalEasyJSON ¶
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EnableParams) MarshalJSON ¶
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EnableParams) UnmarshalEasyJSON ¶
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EnableParams) UnmarshalJSON ¶
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RemoveVirtualAuthenticatorParams ¶
type RemoveVirtualAuthenticatorParams struct {
AuthenticatorID AuthenticatorID `json:"authenticatorId"`
}
RemoveVirtualAuthenticatorParams removes the given authenticator.
func RemoveVirtualAuthenticator ¶
func RemoveVirtualAuthenticator(authenticatorID AuthenticatorID) *RemoveVirtualAuthenticatorParams
RemoveVirtualAuthenticator removes the given authenticator.
See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#method-removeVirtualAuthenticator
parameters:
authenticatorID
func (*RemoveVirtualAuthenticatorParams) Do ¶
func (p *RemoveVirtualAuthenticatorParams) Do(ctx context.Context) (err error)
Do executes WebAuthn.removeVirtualAuthenticator against the provided context.
func (RemoveVirtualAuthenticatorParams) MarshalEasyJSON ¶
func (v RemoveVirtualAuthenticatorParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RemoveVirtualAuthenticatorParams) MarshalJSON ¶
func (v RemoveVirtualAuthenticatorParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RemoveVirtualAuthenticatorParams) UnmarshalEasyJSON ¶
func (v *RemoveVirtualAuthenticatorParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RemoveVirtualAuthenticatorParams) UnmarshalJSON ¶
func (v *RemoveVirtualAuthenticatorParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type VirtualAuthenticatorOptions ¶
type VirtualAuthenticatorOptions struct { Protocol AuthenticatorProtocol `json:"protocol"` Transport AuthenticatorTransport `json:"transport"` HasResidentKey bool `json:"hasResidentKey"` HasUserVerification bool `json:"hasUserVerification"` }
VirtualAuthenticatorOptions [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/WebAuthn#type-VirtualAuthenticatorOptions
func (VirtualAuthenticatorOptions) MarshalEasyJSON ¶
func (v VirtualAuthenticatorOptions) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (VirtualAuthenticatorOptions) MarshalJSON ¶
func (v VirtualAuthenticatorOptions) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*VirtualAuthenticatorOptions) UnmarshalEasyJSON ¶
func (v *VirtualAuthenticatorOptions) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*VirtualAuthenticatorOptions) UnmarshalJSON ¶
func (v *VirtualAuthenticatorOptions) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface