Versions in this module Expand all Collapse all v0 v0.1.1 Feb 5, 2024 Changes in this version + var ErrBadCreds = errors.New("touchstone: bad credentials") + var ErrBadParent = errors.New("touchstone: bad parent in Duo response") + var ErrServer = errors.New("touchstone: server error") + var ErrUnknownResponse = errors.New("touchstone: unknown response") + type Client struct + HTTPClient *http.Client + func NewClient() *Client + func NewClientWithHTTPClient(httpClient *http.Client) *Client + func (c *Client) AuthenticateToResource(resourceURL string) (*http.Response, error) + func (c *Client) BeginUsernamePasswordAuth(username string, password string) (*duo.Challenge, error) + func (c *Client) CompleteAuthWithDuo(final *duo.FinalResponse) error