fix(server): allow proxy in OAUTH messaging

pull/5842/head
Pavel Zavora 2022-01-23 10:04:12 +01:00
parent af97b3a453
commit e7ebd2755b
1 changed files with 4 additions and 8 deletions

View File

@ -692,14 +692,10 @@ func (s *Server) Serve(ctx context.Context) {
return
}
s.oauthClient = http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: s.GenericInsecure,
RootCAs: certs,
},
},
}
transport := influx.CreateTransport(true)
transport.TLSClientConfig.InsecureSkipVerify = s.GenericInsecure
transport.TLSClientConfig.RootCAs = certs
s.oauthClient = http.Client{Transport: transport}
auth := oauth2.NewCookieJWT(s.TokenSecret, s.AuthDuration, s.InactivityDuration)
providerFuncs := []func(func(oauth2.Provider, oauth2.Mux)){