Skip to content

Commit

Permalink
Fixed bug with Idp initiatied entityid
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanheywood committed Mar 11, 2020
1 parent 262ab0a commit ca34393
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions extlib/simplesamlphp/modules/saml/lib/Auth/Source/SP.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,10 @@ public function getIdPMetadata($entityId)
global $saml2auth;
if ($this->idp !== null && $this->idp !== $entityId) {
foreach ($saml2auth->metadataentities as $metadataurl => $idpentities) {
if ($metadataurl == $entityId) {
foreach ($idpentities as $key => $val) {
if ($key == $this->idp) {
$this->idp = null;
}
foreach ($idpentities as $key => $val) {
if ($entityId == $val->entityid) {
$this->idp = null;
break 2;

}
}
}
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2020030600; // The current plugin version (Date: YYYYMMDDXX).
$plugin->release = 2020030600; // Match release exactly to version.
$plugin->version = 2020031100; // The current plugin version (Date: YYYYMMDDXX).
$plugin->release = 2020031100; // Match release exactly to version.
$plugin->requires = 2017051509; // Requires PHP 7, 2017051509 = T12. M3.3
// Strictly we require either Moodle 3.5 OR
// we require Totara 3.3, but the version number
Expand Down

0 comments on commit ca34393

Please sign in to comment.