diff --git a/internal/agenthttp/auth.go b/internal/agenthttp/auth.go index 37eeba9d60..9e34f80017 100644 --- a/internal/agenthttp/auth.go +++ b/internal/agenthttp/auth.go @@ -36,7 +36,7 @@ func (t authenticatedTransport) RoundTrip(req *http.Request) (*http.Response, er }() } - if t.Token == "" { + if t.Token == "" && t.Bearer == "" { return nil, fmt.Errorf("Invalid token, empty string supplied") }