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

LogoutIFrame: Add logout state parameter to skip the logout type question.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2849 44740490-163a-0410-bde0-09ae8108e29a
parent 74f04a06
No related branches found
No related tags found
No related merge requests found
...@@ -41,8 +41,14 @@ class SimpleSAML_IdP_LogoutIFrame extends SimpleSAML_IdP_LogoutHandler { ...@@ -41,8 +41,14 @@ class SimpleSAML_IdP_LogoutIFrame extends SimpleSAML_IdP_LogoutHandler {
$state['core:Logout-IFrame:From'] = NULL; $state['core:Logout-IFrame:From'] = NULL;
} }
$id = SimpleSAML_Auth_State::saveState($state, 'core:Logout-IFrame'); $params = array(
$url = SimpleSAML_Module::getModuleURL('core/idp/logout-iframe.php', array('id' => $id)); 'id' => SimpleSAML_Auth_State::saveState($state, 'core:Logout-IFrame'),
);
if (isset($state['core:Logout-IFrame:InitType'])) {
$params['type'] = $state['core:Logout-IFrame:InitType'];
}
$url = SimpleSAML_Module::getModuleURL('core/idp/logout-iframe.php', $params);
SimpleSAML_Utilities::redirect($url); SimpleSAML_Utilities::redirect($url);
} }
......
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