diff --git a/internal/outpost/proxyv2/application/auth_basic.go b/internal/outpost/proxyv2/application/auth_basic.go index 0381559ae..7dd519170 100644 --- a/internal/outpost/proxyv2/application/auth_basic.go +++ b/internal/outpost/proxyv2/application/auth_basic.go @@ -36,7 +36,7 @@ func (a *Application) attemptBasicAuth(username, password string) *Claims { return nil } req.Header.Set("Content-Type", "application/x-www-form-urlencoded") - res, err := a.httpClient.Do(req) + res, err := a.publicHostHTTPClient.Do(req) if err != nil || res.StatusCode > 200 { b, err := io.ReadAll(res.Body) if err != nil { diff --git a/internal/outpost/proxyv2/application/auth_bearer.go b/internal/outpost/proxyv2/application/auth_bearer.go index 852488752..95f4c12cb 100644 --- a/internal/outpost/proxyv2/application/auth_bearer.go +++ b/internal/outpost/proxyv2/application/auth_bearer.go @@ -39,7 +39,7 @@ func (a *Application) attemptBearerAuth(token string) *TokenIntrospectionRespons return nil } req.Header.Set("Content-Type", "application/x-www-form-urlencoded") - res, err := a.httpClient.Do(req) + res, err := a.publicHostHTTPClient.Do(req) if err != nil || res.StatusCode > 200 { a.log.WithError(err).Warning("failed to send introspection request") return nil