diff --git a/lib/SimpleSAML/IdP/LogoutIFrame.php b/lib/SimpleSAML/IdP/LogoutIFrame.php index a504675101ea093c3aea8d1cd4addfdecfc249da..94124cb39d8860884bbdfe1095b36d054b748879 100644 --- a/lib/SimpleSAML/IdP/LogoutIFrame.php +++ b/lib/SimpleSAML/IdP/LogoutIFrame.php @@ -41,8 +41,14 @@ class SimpleSAML_IdP_LogoutIFrame extends SimpleSAML_IdP_LogoutHandler { $state['core:Logout-IFrame:From'] = NULL; } - $id = SimpleSAML_Auth_State::saveState($state, 'core:Logout-IFrame'); - $url = SimpleSAML_Module::getModuleURL('core/idp/logout-iframe.php', array('id' => $id)); + $params = array( + '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); }