Skip to content

Commit

Permalink
fix: rename backchannel specific tls configuration variable
Browse files Browse the repository at this point in the history
  • Loading branch information
aarmam committed May 10, 2022
1 parent 5271604 commit bd96bd4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions consent/strategy_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,20 @@ const (
)

type DefaultStrategy struct {
c *config.Provider
r InternalRegistry
tlsClientConfig *tls.Config
c *config.Provider
r InternalRegistry
backChannelClientTlsConfig *tls.Config
}

func NewStrategy(r InternalRegistry, c *config.Provider) *DefaultStrategy {
tlsClientConfig, err := c.TLSClientConfigWithDefaultFallback(config.KeyPrefixClientBackChannelLogout)
backChannelClientTlsConfig, err := c.TLSClientConfigWithDefaultFallback(config.KeyPrefixClientBackChannelLogout)
if err != nil {
r.Logger().WithError(err).Fatalf("Unable to setup backchannel logout request client TLS configuration.")
}
return &DefaultStrategy{
c: c,
r: r,
tlsClientConfig: tlsClientConfig,
c: c,
r: r,
backChannelClientTlsConfig: backChannelClientTlsConfig,
}
}

Expand Down Expand Up @@ -703,7 +703,7 @@ func (s *DefaultStrategy) executeBackChannelLogout(ctx context.Context, r *http.
httpx.ResilientClientWithClient(&http.Client{
Timeout: time.Minute,
Transport: &http.Transport{
TLSClientConfig: s.tlsClientConfig,
TLSClientConfig: s.backChannelClientTlsConfig,
},
}))

Expand Down

0 comments on commit bd96bd4

Please sign in to comment.