catalyst / moodle-auth_saml2

SAML done 100% in Moodle, fast, simple, secure
https://moodle.org/plugins/auth_saml2
70 stars 132 forks source link

wrong configuration for discovery service: 'idp' must be 'idpentity' in config/authsources.php #767

Open iv-enovation opened 10 months ago

iv-enovation commented 10 months ago

in config/authsources.php in line 65: 'idp' => empty($CFG->auth_saml2_disco_url) ? $idpentityid : null,

is wrong, it must be: 'idpentityid' => empty($CFG->auth_saml2_disco_url) ? $idpentityid : null,

as further in .extlib/simplesamlphp/modules/saml/www/sp/discoresp.php it checks for 'idpentity': if (!array_key_exists('idpentityid', $_REQUEST)) { throw new \SimpleSAML\Error\BadRequest('Missing idpentityid to discovery service response handler'); }