Skip to content

Commit

Permalink
use OIDCTLSConfig in session manager
Browse files Browse the repository at this point in the history
Signed-off-by: notfromstatefarm <[email protected]>
  • Loading branch information
notfromstatefarm committed Jul 6, 2022
1 parent f32ed5e commit 7c4eb6f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions util/session/sessionmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,7 @@ func NewSessionManager(settingsMgr *settings.SettingsManager, projectsLister v1a
}
}
} else {
tlsConfig := settings.TLSConfig()
if tlsConfig != nil {
tlsConfig.InsecureSkipVerify = true
}
transport.TLSClientConfig = tlsConfig
transport.TLSClientConfig = settings.OIDCTLSConfig()
}
if os.Getenv(common.EnvVarSSODebug) == "1" {
s.client.Transport = httputil.DebugTransport{T: s.client.Transport}
Expand Down

0 comments on commit 7c4eb6f

Please sign in to comment.