Documentation ¶
Overview ¶
Package auth simplifies creating token and oAuth authenticated http.Client for use with rest.Client
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOAuthBasedClient ¶
NewOAuthBasedClient creates a new HTTP client with OAuth2 client credentials authentication. It takes a context and a clientcredentials.Config as arguments and returns an instance of *http.Client. The client credentials are used to authenticate requests made by the returned HTTP client.
func NewTokenBasedClient ¶
NewTokenBasedClient creates a new HTTP client with token-based authentication. It takes a token string as an argument and returns an instance of *http.Client.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.