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

check for valid sessions in auth modules

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@372 44740490-163a-0410-bde0-09ae8108e29a
parent 6aa1bec4
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,8 @@ $error = null; ...@@ -19,6 +19,8 @@ $error = null;
$attributes = array(); $attributes = array();
$username = null; $username = null;
if (empty($session))
SimpleSAML_Utilities::fatalError($session->getTrackID(), 'NOSESSION');
/* Load the RelayState argument. The RelayState argument contains the address /* Load the RelayState argument. The RelayState argument contains the address
* we should redirect the user to after a successful authentication. * we should redirect the user to after a successful authentication.
......
...@@ -40,6 +40,11 @@ SimpleSAML_Logger::info('AUTH - ldap-feide: Accessing auth endpoint login-feide' ...@@ -40,6 +40,11 @@ SimpleSAML_Logger::info('AUTH - ldap-feide: Accessing auth endpoint login-feide'
$error = null; $error = null;
$attributes = array(); $attributes = array();
if (empty($session))
SimpleSAML_Utilities::fatalError($session->getTrackID(), 'NOSESSION');
/* /*
* Load the RelayState argument. The RelayState argument contains the address * Load the RelayState argument. The RelayState argument contains the address
* we should redirect the user to after a successful authentication. * we should redirect the user to after a successful authentication.
......
...@@ -19,6 +19,8 @@ require_once($ldapconfigfile); ...@@ -19,6 +19,8 @@ require_once($ldapconfigfile);
SimpleSAML_Logger::info('AUTH - ldap-multi: Accessing auth endpoint login-ldapmulti'); SimpleSAML_Logger::info('AUTH - ldap-multi: Accessing auth endpoint login-ldapmulti');
if (empty($session))
SimpleSAML_Utilities::fatalError($session->getTrackID(), 'NOSESSION');
$error = null; $error = null;
$attributes = array(); $attributes = array();
......
...@@ -18,6 +18,9 @@ SimpleSAML_Logger::info('AUTH - radius: Accessing auth endpoint login'); ...@@ -18,6 +18,9 @@ SimpleSAML_Logger::info('AUTH - radius: Accessing auth endpoint login');
$error = null; $error = null;
$attributes = array(); $attributes = array();
if (empty($session))
SimpleSAML_Utilities::fatalError($session->getTrackID(), 'NOSESSION');
/* Load the RelayState argument. The RelayState argument contains the address /* Load the RelayState argument. The RelayState argument contains the address
* we should redirect the user to after a successful authentication. * we should redirect the user to after a successful authentication.
*/ */
......
...@@ -21,6 +21,8 @@ $error = null; ...@@ -21,6 +21,8 @@ $error = null;
$attributes = array(); $attributes = array();
$username = null; $username = null;
if (empty($session))
SimpleSAML_Utilities::fatalError($session->getTrackID(), 'NOSESSION');
/* Load the RelayState argument. The RelayState argument contains the address /* Load the RelayState argument. The RelayState argument contains the address
* we should redirect the user to after a successful authentication. * we should redirect the user to after a successful authentication.
......
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