diff --git a/.docker/config/simplesaml/metadata/saml20-idp-remote.php b/.docker/config/simplesaml/metadata/saml20-idp-remote.php index 67d4ea76d..e9c761487 100644 --- a/.docker/config/simplesaml/metadata/saml20-idp-remote.php +++ b/.docker/config/simplesaml/metadata/saml20-idp-remote.php @@ -2,6 +2,7 @@ $idpBaseURL = getenv('SIMPLESAMLPHP_IDP_BASE_URL'); $idpEntityId = getenv('SIMPLESAMLPHP_IDP_ENTITYID') ?: $idpBaseURL; +$singleLogOut = getenv('SIMPLESAMLPHP_SP_SLO') ?: false; $fallbackBinding = getenv('SIMPLESAMLPHP_IDP_DEFAULT_BINDING'); $bindingKeys = [ @@ -23,7 +24,7 @@ $envVar = getenv($key); // Special for LOGOUT: fallback to non-logout sibling if present. - if (str_contains($key, 'LOGOUT') && empty($envVar)) { + if (str_contains($key, 'LOGOUT') && empty($envVar) && $singleLogOut) { $nonLogoutKey = str_replace('LOGOUT_', '', $key); $envVar = getenv($nonLogoutKey); }