本文整理匯總了PHP中phpCAS::setServerSamlValidateURL方法的典型用法代碼示例。如果您正苦於以下問題:PHP phpCAS::setServerSamlValidateURL方法的具體用法?PHP phpCAS::setServerSamlValidateURL怎麽用?PHP phpCAS::setServerSamlValidateURL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類phpCAS
的用法示例。
在下文中一共展示了phpCAS::setServerSamlValidateURL方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setOptionalClientSettings
/**
* @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);
}
}