Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongPassphrase = errors.New("Unauthorized: wrong passphrase")
ErrWrongPassphrase is used when the passphrase is wrong
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Addr string Domain string Scheme string Client *http.Client AuthClient *auth.Client AuthScopes []string AuthAccept auth.UserAcceptFunc AuthStorage auth.Storage Authorizer request.Authorizer UserAgent string Retries int Transport http.RoundTripper // contains filtered or unexported fields }
Client encapsulates the element representing a typical connection to the HTTP api of the cozy-stack.
It holds the elements to authenticate a user, as well as the transport layer used for all the calls to the stack.
func (*Client) Authenticate ¶
func (c *Client) Authenticate() (request.Authorizer, error)
Authenticate is used to authenticate a client via OAuth.
Click to show internal directories.
Click to hide internal directories.