Package auth
Overview ▸
Index ▸
func AddCredentials
func AddCredentials(client *http.Client, req *http.Request, res *http.Response, url string) bool
AddCredentials populates the request header with the user's credentials as specified by the GOAUTH environment variable. It returns whether any matching credentials were found. req must use HTTPS or this function will panic. res is used for the custom GOAUTH command's stdin.