From aee8a98d8460d218efb978e8dd9c0b4c741a56c0 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Tue, 26 Jul 2011 09:43:21 +0000 Subject: [PATCH] Implemented two new options for CAS: - logout_redirect_service - memberOf SVN:trunk[1363] --- pages/logoff.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/logoff.php b/pages/logoff.php index 1125c9f84..ed5e666cd 100644 --- a/pages/logoff.php +++ b/pages/logoff.php @@ -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();