fix(server): allow proxy in OAUTH messaging
parent
af97b3a453
commit
e7ebd2755b
|
@ -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)){
|
||||
|
|
Loading…
Reference in New Issue