From eaeca0157c6446946eb415ef0b4febf615b28fba Mon Sep 17 00:00:00 2001 From: Srinandan Sridhar <13950006+srinandan@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:27:09 -0700 Subject: [PATCH] bug: fixes missing auth header #291 (#295) --- internal/client/keystores/keystores.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/client/keystores/keystores.go b/internal/client/keystores/keystores.go index b5703fa05..7ca35287f 100644 --- a/internal/client/keystores/keystores.go +++ b/internal/client/keystores/keystores.go @@ -136,6 +136,11 @@ func importKeystores(wg *sync.WaitGroup, jobs <-chan string, errs chan<- error) errs <- err continue } + req, err = apiclient.SetAuthHeader(req) + if err != nil { + errs <- err + continue + } resp, err := apiclient.ApigeeAPIClient.Do(req) if err != nil {