Skip to content
Snippets Groups Projects
Commit 9c2d45ed authored by Anders Lund's avatar Anders Lund
Browse files

Give exception if session has timed out.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@660 44740490-163a-0410-bde0-09ae8108e29a
parent 29ad61e0
No related branches found
No related tags found
No related merge requests found
...@@ -51,10 +51,14 @@ if (!array_key_exists('protocol', $_REQUEST)) { ...@@ -51,10 +51,14 @@ if (!array_key_exists('protocol', $_REQUEST)) {
if ($_REQUEST['protocol'] != 'saml2') { if ($_REQUEST['protocol'] != 'saml2') {
SimpleSAML_Utilities::fatalError($session->getTrackID(), null, new Exception('This login module only works with SAML 2.0')); SimpleSAML_Utilities::fatalError($session->getTrackID(), null, new Exception('This login module only works with SAML 2.0'));
} }
$protocol = $_REQUEST['protocol']; try {
$authid = $_REQUEST['AuthId']; $protocol = $_REQUEST['protocol'];
$authrequestcache = $session->getAuthnRequest($protocol, $authid); $authid = $_REQUEST['AuthId'];
$authrequestcache = $session->getAuthnRequest($protocol, $authid);
} catch (Exception $e) {
SimpleSAML_Utilities::fatalError($session->getTrackID(), 'NOSESSION', $e);
}
$spentityid = $authrequestcache['Issuer']; $spentityid = $authrequestcache['Issuer'];
$spmetadata = $metadata->getMetadata($spentityid, 'saml20-sp-remote'); $spmetadata = $metadata->getMetadata($spentityid, 'saml20-sp-remote');
......
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