Implemented two new options for CAS:

- logout_redirect_service
- memberOf

SVN:trunk[1363]
This commit is contained in:
Denis Flaven
2011-07-26 09:43:21 +00:00
parent 3ab670e8c2
commit aee8a98d84

View File

@@ -42,8 +42,13 @@ LoginWebPage::ResetSession();
switch($sLoginMode)
{
case 'cas':
$sCASLogoutUrl = MetaModel::GetConfig()->Get('cas_logout_redirect_service');
if (empty($sCASLogoutUrl))
{
$sCASLogoutUrl = $sUrl;
}
utils::InitCASClient();
phpCAS::logoutWithUrl($sUrl); // Redirects to the CAS logout page
phpCAS::logoutWithRedirectService($sCASLogoutUrl); // Redirects to the CAS logout page
break;
}
$oPage = new LoginWebPage();