Skip to content

Commit

Permalink
fix: SSO integration not considering HTTP_PROXY when making requests. F…
Browse files Browse the repository at this point in the history
…ixes #9259 (#9760)

fix: SSO integration not considering HTTP_PROXY env vars when making requests

Signed-off-by: Rohan Kumar <rohan@pipekit.io>

Signed-off-by: Rohan Kumar <rohan@pipekit.io>
  • Loading branch information
rohankmr414 committed Oct 10, 2022
1 parent 529dc0f commit b12b5f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/auth/sso/sso.go
Expand Up @@ -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) {
Expand Down

0 comments on commit b12b5f9

Please sign in to comment.