From 53013d2916267031be4db4231fd8244f3163eaa2 Mon Sep 17 00:00:00 2001 From: Jordan Carter Date: Thu, 24 Oct 2024 15:49:12 +1300 Subject: [PATCH] Allow token to be empty if bearer is provided --- internal/agenthttp/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") }