|
|
|
|
@ -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']); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|