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

3 comments on commit ca34393

@danmarsden
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brendanheywood - is this related to an upstream issue or can you load some more information in the tracker somewhere for this one so that when we upgrade the simplesaml lib we can identify if this is still needed and test it?

@danmarsden
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah - I see this relates to #105 - might be a nice idea to try and follow moodle commit guidelines and include a bug issue in our commits? :-)

@brendanheywood
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do what I say not what I do? :/

Please sign in to comment.