From 3fdf35d967b7073629ffa17c7ad4e56715d661b3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20P=C3=A9rez=20Crespo?= <jaime.perez@uninett.no>
Date: Mon, 25 Nov 2013 16:08:17 +0000
Subject: [PATCH] Remove old performlogout.php file.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3302 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/core/www/idp/performlogout.php | 59 --------------------------
 1 file changed, 59 deletions(-)
 delete mode 100644 modules/core/www/idp/performlogout.php

diff --git a/modules/core/www/idp/performlogout.php b/modules/core/www/idp/performlogout.php
deleted file mode 100644
index 6c17a1c9f..000000000
--- a/modules/core/www/idp/performlogout.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-
-if (!isset($_REQUEST['id'])) {
-	throw new SimpleSAML_Error_BadRequest('Missing id-parameter.');
-}
-$id = (string)$_REQUEST['id'];
-if (!isset($_REQUEST['sp'])) {
-	throw new SimpleSAML_Error_BadRequest('Missing sp-parameter.');
-}
-$sp = urldecode($_REQUEST['sp']);
-$type = @(string)$_REQUEST['type'];
-
-$state = SimpleSAML_Auth_State::loadState($id, 'core:Logout-IFrame');
-$idp = SimpleSAML_IdP::getByState($state);
-
-$associations = $state['core:Logout-IFrame:Associations'];
-if (!isset($associations[$sp])) {
-	exit;
-}
-
-$association = $associations[$sp];
-
-$metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
-$idpMetadata = $idp->getConfig();
-$spMetadata = $metadata->getMetaDataConfig($association['saml:entityID'], 'saml20-sp-remote');
-
-$lr = sspmod_saml_Message::buildLogoutRequest($idpMetadata, $spMetadata);
-$lr->setSessionIndex($association['saml:SessionIndex']);
-$lr->setNameId($association['saml:NameID']);
-
-$assertionLifetime = $spMetadata->getInteger('assertion.lifetime', NULL);
-if ($assertionLifetime === NULL) {
-	$assertionLifetime = $idpMetadata->getInteger('assertion.lifetime', 300);
-}
-$lr->setNotOnOrAfter(time() + $assertionLifetime);
-
-$encryptNameId = $spMetadata->getBoolean('nameid.encryption', NULL);
-if ($encryptNameId === NULL) {
-	$encryptNameId = $idpMetadata->getBoolean('nameid.encryption', FALSE);
-}
-if ($encryptNameId) {
-	$lr->encryptNameId(sspmod_saml_Message::getEncryptionKey($spMetadata));
-}
-
-SimpleSAML_Stats::log('saml:idp:LogoutRequest:sent', array(
-	'spEntityID' => $association['saml:entityID'],
-	'idpEntityID' => $idpMetadata->getString('entityid'),
-));
-
-$bindings = array(SAML2_Const::BINDING_HTTP_REDIRECT);
-if ($type === 'js') {
-	array_push($bindings, SAML2_Const::BINDING_HTTP_POST);
-}
-
-$dst = $spMetadata->getDefaultEndpoint('SingleLogoutService', $bindings);
-$binding = SAML2_Binding::getBinding($dst['Binding']);
-$lr->setDestination($dst['Location']);
-
-$binding->send($lr);
-- 
GitLab