diff --git a/main/auth/cas/cas_var.inc.php b/main/auth/cas/cas_var.inc.php index bf7b030b19..6e11a70a21 100755 --- a/main/auth/cas/cas_var.inc.php +++ b/main/auth/cas/cas_var.inc.php @@ -48,12 +48,18 @@ if (api_is_cas_activated()) { phpCAS::setNoCasServerValidation(); } - if (is_array($cas) && array_key_exists('fixedServiceURL', $cas)) { - $fixedServiceURL = $cas['fixedServiceURL']; - if (is_string($fixedServiceURL)) { - phpCAS::setFixedServiceURL($fixedServiceURL); - } elseif (is_bool($fixedServiceURL) && $fixedServiceURL) { - phpCAS::setFixedServiceURL(api_get_configuration_value('root_web')); + if (is_array($cas)) { + if (array_key_exists('fixedServiceURL', $cas)) { + $fixedServiceURL = $cas['fixedServiceURL']; + if (is_string($fixedServiceURL)) { + phpCAS::setFixedServiceURL($fixedServiceURL); + } elseif (is_bool($fixedServiceURL) && $fixedServiceURL) { + phpCAS::setFixedServiceURL(api_get_configuration_value('root_web')); + } + } + + if (isset($cas['saml_validate_url'])) { + phpCAS::setServerSamlValidateURL($cas['saml_validate_url']); } } }