From b12b5f9875b2a070bbcb0a3a16154495c196e6b2 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Mon, 10 Oct 2022 21:14:24 +0530 Subject: [PATCH] fix: SSO integration not considering HTTP_PROXY when making requests. Fixes #9259 (#9760) fix: SSO integration not considering HTTP_PROXY env vars when making requests Signed-off-by: Rohan Kumar Signed-off-by: Rohan Kumar --- server/auth/sso/sso.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/auth/sso/sso.go b/server/auth/sso/sso.go index ea6acc5e3233..9cf338f9cd18 100644 --- a/server/auth/sso/sso.go +++ b/server/auth/sso/sso.go @@ -79,7 +79,8 @@ type providerInterface interface { type providerFactory func(ctx context.Context, issuer string) (providerInterface, error) func providerFactoryOIDC(ctx context.Context, issuer string) (providerInterface, error) { - return oidc.NewProvider(ctx, issuer) + oidcCtx := oidc.ClientContext(ctx, &http.Client{}) + return oidc.NewProvider(oidcCtx, issuer) } func New(c Config, secretsIf corev1.SecretInterface, baseHRef string, secure bool) (Interface, error) {