Skip to content

Commit bd96bd4

Browse files
committed
fix: rename backchannel specific tls configuration variable
1 parent 5271604 commit bd96bd4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

consent/strategy_default.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,20 @@ const (
6767
)
6868

6969
type DefaultStrategy struct {
70-
c *config.Provider
71-
r InternalRegistry
72-
tlsClientConfig *tls.Config
70+
c *config.Provider
71+
r InternalRegistry
72+
backChannelClientTlsConfig *tls.Config
7373
}
7474

7575
func NewStrategy(r InternalRegistry, c *config.Provider) *DefaultStrategy {
76-
tlsClientConfig, err := c.TLSClientConfigWithDefaultFallback(config.KeyPrefixClientBackChannelLogout)
76+
backChannelClientTlsConfig, err := c.TLSClientConfigWithDefaultFallback(config.KeyPrefixClientBackChannelLogout)
7777
if err != nil {
7878
r.Logger().WithError(err).Fatalf("Unable to setup backchannel logout request client TLS configuration.")
7979
}
8080
return &DefaultStrategy{
81-
c: c,
82-
r: r,
83-
tlsClientConfig: tlsClientConfig,
81+
c: c,
82+
r: r,
83+
backChannelClientTlsConfig: backChannelClientTlsConfig,
8484
}
8585
}
8686

@@ -703,7 +703,7 @@ func (s *DefaultStrategy) executeBackChannelLogout(ctx context.Context, r *http.
703703
httpx.ResilientClientWithClient(&http.Client{
704704
Timeout: time.Minute,
705705
Transport: &http.Transport{
706-
TLSClientConfig: s.tlsClientConfig,
706+
TLSClientConfig: s.backChannelClientTlsConfig,
707707
},
708708
}))
709709

0 commit comments

Comments
 (0)