Documentation ¶
Overview ¶
Package twofa contains routines for getting short lived certificate.
Index ¶
- func CheckU2FDevices(logger log.DebugLogger) error
- func DoU2FAuthenticate(client *http.Client, baseURL string, userAgentString string, ...) error
- func WithDevicesDoU2FAuthenticate(devices []*u2fhost.HidDevice, client *http.Client, baseURL string, ...) error
- func WithDevicesDoWebAuthnAuthenticate(devices []*u2fhost.HidDevice, client *http.Client, baseURL string, ...) error
- type AuthenticatorResponse
- type ClientData
- type WebAuthnAuthenticationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckU2FDevices ¶
func CheckU2FDevices(logger log.DebugLogger) error
CheckU2FDevices checks the U2F devices and terminates the application by calling Fatal on the passed logger if the U2F devices cannot be read.
func DoU2FAuthenticate ¶
func DoU2FAuthenticate( client *http.Client, baseURL string, userAgentString string, logger log.DebugLogger) error
DoU2FAuthenticate does U2F authentication
func WithDevicesDoU2FAuthenticate ¶ added in v1.13.3
func WithDevicesDoWebAuthnAuthenticate ¶ added in v1.13.3
Types ¶
type AuthenticatorResponse ¶ added in v1.13.3
type ClientData ¶ added in v1.13.3
type WebAuthnAuthenticationResponse ¶ added in v1.13.3
type WebAuthnAuthenticationResponse struct { Id string `json:"id"` RawId string `json:"rawId"` Type string `json:"type"` Response AuthenticatorResponse `json:"response"` }
type WebAuthnAuthenticationResponse struct { \"id\":\"bDtn39BgSSwOscXr3ruEGmegBVEd6yntysf8NiG2I2KDz7-CEiw9mIm1BvlQYfg9g1Rq38IpFwEj8Cxn_9uNlA\",\"rawId\":\"bDtn39BgSSwOscXr3ruEGmegBVEd6yntysf8NiG2I2KDz7-CEiw9mIm1BvlQYfg9g1Rq38IpFwEj8Cxn_9uNlA\",\"type\":\"public-key\",\"response\"
Click to show internal directories.
Click to hide internal directories.