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

ADded: Default value for "returnIDParam". Added to support Shibboleth 2.0 SP which does not

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@661 44740490-163a-0410-bde0-09ae8108e29a
parent 9c2d45ed
No related branches found
No related tags found
No related merge requests found
...@@ -23,12 +23,20 @@ $rememberEnabled = $config->getBoolean('idpdisco.enableremember', FALSE); ...@@ -23,12 +23,20 @@ $rememberEnabled = $config->getBoolean('idpdisco.enableremember', FALSE);
try { try {
if (!isset($_GET['entityID'])) throw new Exception('Missing parameter: entityID'); if (!isset($_GET['entityID'])) throw new Exception('Missing parameter: entityID');
if (!isset($_GET['return'])) throw new Exception('Missing parameter: return');
if (!isset($_GET['returnIDParam'])) throw new Exception('Missing parameter: returnIDParam'); if (!isset($_GET['returnIDParam'])) throw new Exception('Missing parameter: returnIDParam');
$spentityid = $_GET['entityID']; $spentityid = $_GET['entityID'];
$return = $_GET['return']; $return = $_GET['return'];
$returnidparam = $_GET['returnIDParam'];
// Default value for "returnIDParam". Added to support Shibboleth 2.0 SP which does not
// send this parameter.
$returnidparam = 'idpentityid';
//if (!isset($_GET['return'])) throw new Exception('Missing parameter: return');
if (isset($_GET['returnIDParam'])) {
$returnidparam = $_GET['returnIDParam'];
}
} catch (Exception $exception) { } catch (Exception $exception) {
SimpleSAML_Utilities::fatalError($session->getTrackID(), 'DISCOPARAMS', $exception); SimpleSAML_Utilities::fatalError($session->getTrackID(), 'DISCOPARAMS', $exception);
......
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