setServerSamlValidateURL() public static method

Set the samlValidate URL of the CAS server.
public static setServerSamlValidateURL ( string $url = '' ) : void
$url string the samlValidate URL
return void
Ejemplo n.º 1
0
 /**
  * @todo make this options usable.
  * @todo move to other class
  *
  * @param string $providerName defined in Settings.yaml
  *
  * @throws \TYPO3\Flow\Exception
  *
  * @return void
  */
 private function setOptionalClientSettings($providerName)
 {
     $casClientSettings = $this->getClientSettingsByProviderName($providerName);
     try {
         if (!empty($casClientSettings['serverLoginURL'])) {
             \phpCAS::setServerLoginURL($casClientSettings['serverLoginURL']);
         }
         if (!empty($casClientSettings['serverLogoutURL'])) {
             \phpCAS::setServerLogoutURL($casClientSettings['serverLogoutURL']);
         }
         if (!empty($casClientSettings['serverProxyValidateURL'])) {
             \phpCAS::setServerProxyValidateURL($casClientSettings['serverProxyValidateURL']);
         }
         if (!empty($casClientSettings['serverSamlValidateURL'])) {
             \phpCAS::setServerSamlValidateURL($casClientSettings['serverSamlValidateURL']);
         }
         if (!empty($casClientSettings['serverServiceValidateURL'])) {
             \phpCAS::setServerServiceValidateURL($casClientSettings['serverServiceValidateURL']);
         }
         // since CAS 4.0 disbled
         if (!empty($casClientSettings['singleSignoutCallback'])) {
             \phpCAS::setSingleSignoutCallback($casClientSettings['singleSignoutCallback']);
         }
     } catch (\Exception $exc) {
         throw new \TYPO3\Flow\Exception('Can not set some optianal property in Jasigs phpCAS broken on: ' . $exc->getCode() . ' with message: ' . $exc->getMessage(), 1372519681);
     }
 }