Skip to content

Commit 249d2c0

Browse files
committed
fix: rename backchannel specific tls configuration variable
1 parent 61b409f commit 249d2c0

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
@@ -68,20 +68,20 @@ const (
6868
)
6969

7070
type DefaultStrategy struct {
71-
c *config.Provider
72-
r InternalRegistry
73-
tlsClientConfig *tls.Config
71+
c *config.Provider
72+
r InternalRegistry
73+
backChannelClientTlsConfig *tls.Config
7474
}
7575

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

@@ -705,7 +705,7 @@ func (s *DefaultStrategy) executeBackChannelLogout(ctx context.Context, r *http.
705705
httpx.ResilientClientWithClient(&http.Client{
706706
Timeout: time.Minute,
707707
Transport: &http.Transport{
708-
TLSClientConfig: s.tlsClientConfig,
708+
TLSClientConfig: s.backChannelClientTlsConfig,
709709
},
710710
}))
711711
wg.Add(len(tasks))

0 commit comments

Comments
 (0)