diff --git a/www/saml2/sp/idpdisco.php b/www/saml2/sp/idpdisco.php index 209dde975de9b75c7cc05f8ecba24990d679846c..cc16ffef5eeff1f15a89d2d579c57a430a0aca97 100644 --- a/www/saml2/sp/idpdisco.php +++ b/www/saml2/sp/idpdisco.php @@ -23,17 +23,19 @@ $rememberEnabled = $config->getBoolean('idpdisco.enableremember', FALSE); try { if (!isset($_GET['entityID'])) throw new Exception('Missing parameter: entityID'); - - if (!isset($_GET['returnIDParam'])) throw new Exception('Missing parameter: returnIDParam'); + if (!isset($_GET['return'])) throw new Exception('Missing parameter: return'); + + $spentityid = $_GET['entityID']; $return = $_GET['return']; // Default value for "returnIDParam". Added to support Shibboleth 2.0 SP which does not // send this parameter. + // if (!isset($_GET['returnIDParam'])) throw new Exception('Missing parameter: returnIDParam'); $returnidparam = 'idpentityid'; - //if (!isset($_GET['return'])) throw new Exception('Missing parameter: return'); + // if (isset($_GET['returnIDParam'])) { $returnidparam = $_GET['returnIDParam']; }