From a9e5fe40554a2f5130a27f242679a6eaa0d4be98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Wed, 13 Feb 2008 12:54:01 +0000 Subject: [PATCH] made shib13 acs create a new session to get error handling with track id properly in case of failure. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@290 44740490-163a-0410-bde0-09ae8108e29a --- www/shib13/sp/AssertionConsumerService.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/www/shib13/sp/AssertionConsumerService.php b/www/shib13/sp/AssertionConsumerService.php index 2baf66945..c81431dcb 100644 --- a/www/shib13/sp/AssertionConsumerService.php +++ b/www/shib13/sp/AssertionConsumerService.php @@ -10,16 +10,20 @@ require_once('SimpleSAML/XML/Shib13/AuthnRequest.php'); require_once('SimpleSAML/Bindings/Shib13/HTTPPost.php'); require_once('SimpleSAML/XHTML/Template.php'); + +$config = SimpleSAML_Configuration::getInstance(); +$metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); +$session = SimpleSAML_Session::getInstance(true); + try { - $config = SimpleSAML_Configuration::getInstance(); - $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); + $binding = new SimpleSAML_Bindings_Shib13_HTTPPost($config, $metadata); $authnResponse = $binding->decodeResponse($_POST); $authnResponse->validate(); - $session = $authnResponse->createSession(true); + $session = $authnResponse->createSession(); if (isset($session)) { $relayState = $authnResponse->getRelayState(); -- GitLab