Skip to content
Snippets Groups Projects
Commit e22817e6 authored by Olav Morken's avatar Olav Morken
Browse files

consentAdmin: Use SimpleSAML_Auth_Simple for logout also.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2602 44740490-163a-0410-bde0-09ae8108e29a
parent c1f441a4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment