From c3c22e76bea13813527844f8a5b1e8d12aa1701d Mon Sep 17 00:00:00 2001 From: Mike Wilson Date: Thu, 27 Apr 2023 15:39:33 -0400 Subject: [PATCH] Properly handle SAML IdP enable/disable. The SAML IdP was not disabling as expected. This has been corrected. --- lib/config/configuration.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/config/configuration.go b/lib/config/configuration.go index 41af97166c87b..ec8b8a46db555 100644 --- a/lib/config/configuration.go +++ b/lib/config/configuration.go @@ -1055,10 +1055,7 @@ func applyProxyConfig(fc *FileConfig, cfg *servicecfg.Config) error { cfg.Proxy.PeerPublicAddr = *addr } - if fc.Proxy.IdP.SAMLIdP.Enabled() { - cfg.Proxy.IdP.SAMLIdP.Enabled = true - } - + cfg.Proxy.IdP.SAMLIdP.Enabled = fc.Proxy.IdP.SAMLIdP.Enabled() cfg.Proxy.IdP.SAMLIdP.BaseURL = fc.Proxy.IdP.SAMLIdP.BaseURL acme, err := fc.Proxy.ACME.Parse()