From 97c8328b4a1242492442375ff5c5a675f31fac11 Mon Sep 17 00:00:00 2001 From: Florian Ilch Date: Mon, 13 Jul 2026 21:48:20 +0200 Subject: [PATCH] feat: support proxy environment variables for OAuth requests Configure the OAuth HTTP transport with http.ProxyFromEnvironment so token exchange and userinfo requests respect HTTP_PROXY, HTTPS_PROXY and NO_PROXY. --- internal/service/oauth_service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/service/oauth_service.go b/internal/service/oauth_service.go index 44d12555..9667e513 100644 --- a/internal/service/oauth_service.go +++ b/internal/service/oauth_service.go @@ -24,6 +24,7 @@ func NewOAuthService(config model.OAuthServiceConfig, id string, ctx context.Con httpClient := &http.Client{ Timeout: 30 * time.Second, Transport: &http.Transport{ + Proxy: http.ProxyFromEnvironment, TLSClientConfig: &tls.Config{ InsecureSkipVerify: config.Insecure, MinVersion: tls.VersionTLS12,