summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Morken <olav.morken@uninett.no>2010-10-25 12:28:30 +0000
committerOlav Morken <olav.morken@uninett.no>2010-10-25 12:28:30 +0000
commite22817e66a2dbd76e15d697433fd9da7e2016af7 (patch)
tree6348d5e3478a0ddb90cef81b979b9b9e7a9ee654
parentc1f441a41a0cc62c3b3d34b4db89567f44c367ff (diff)
downloadsimplesamlphp-e22817e66a2dbd76e15d697433fd9da7e2016af7.zip
simplesamlphp-e22817e66a2dbd76e15d697433fd9da7e2016af7.tar.gz
simplesamlphp-e22817e66a2dbd76e15d697433fd9da7e2016af7.tar.bz2
consentAdmin: Use SimpleSAML_Auth_Simple for logout also.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2602 44740490-163a-0410-bde0-09ae8108e29a
-rw-r--r--modules/consentAdmin/www/consentAdmin.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/consentAdmin/www/consentAdmin.php b/modules/consentAdmin/www/consentAdmin.php
index e49729c..00e96ae 100644
--- a/modules/consentAdmin/www/consentAdmin.php
+++ b/modules/consentAdmin/www/consentAdmin.php
@@ -60,18 +60,19 @@ function driveProcessingChain($idp_metadata, $source, $sp_metadata, $sp_entityid
// Get config object
$config = SimpleSAML_Configuration::getInstance();
$cA_config = SimpleSAML_Configuration::getConfig('module_consentAdmin.php');
+$authority = $cA_config->getValue('authority');
+
+$as = new SimpleSAML_Auth_Simple($authority);
// If request is a logout request
if(array_key_exists('logout', $_REQUEST)) {
$returnURL = $cA_config->getValue('returnURL');
- SimpleSAML_Auth_Default::initLogout($returnURL);
+ $as->logout($returnURL);
}
$hashAttributes = $cA_config->getValue('attributes.hash');
-$authority = $cA_config->getValue('authority');
/* Check if valid local session exists */
-$as = new SimpleSAML_Auth_Simple($authority);
$as->requireAuth();
// Get released attributes