in client.go I see this:
if len(c.Token) > 0 {
req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", c.Token))
This supports Bearer tokens. But no support for Basic auth.
We should add a "Username" and "Password" in the Parameters object. If they are specified, then add a "Basic" header. If they are not specified, but token is, then do what we are already doing (add a Bearer header). If neither are specified, do nothing.
in client.go I see this: if len(c.Token) > 0 { req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", c.Token))
This supports Bearer tokens. But no support for Basic auth.
We should add a "Username" and "Password" in the Parameters object. If they are specified, then add a "Basic" header. If they are not specified, but token is, then do what we are already doing (add a Bearer header). If neither are specified, do nothing.