TykTechnologies / tyk-identity-broker

Tyk Authentication Proxy for third-party login
Other
110 stars 32 forks source link

TT-12174 Added support for proxy settings loaded from environment variables #394

Open codingWombat opened 6 months ago

codingWombat commented 6 months ago

Added http.ProxyFromEnvironment to creation of transport for the default client.

Description

In the main.go file the transport of the http.DefaultClient is overwritten because InsecureSkipVerify: config.SSLInsecureSkipVerify is added. This disables the default behavior of go that the environment variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY are used for HTTP connections.

Related Issue

https://github.com/TykTechnologies/tyk-identity-broker/issues/393

Motivation and Context

The change allows to use the tyk identity broker to be used in environments where access to external services is managed by a http porxy.

How This Has Been Tested

Patched image used to gain access to a identiy provider via HTTP Proxy

Types of changes

Checklist