Skip to content
Snippets Groups Projects
Commit a9e5fe40 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

made shib13 acs create a new session to get error handling with track id...

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
parent 4b88ee0a
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
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