Skip to content

Commit

Permalink
Correct incorrect access to idp field
Browse files Browse the repository at this point in the history
  • Loading branch information
Peterburnett committed Jan 30, 2024
1 parent 8b146b0 commit d3fd822
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .extlib/simplesamlphp/modules/saml/src/Auth/Source/SP.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,9 @@ public function getIdPMetadata(string $entityId): Configuration
}
}
}
unset($this->idp);
if ($this->idp !== null) {
$this->idp = null;
}
if ($this->idp !== null && $this->idp !== $entityId) {
throw new Error\Exception('Cannot retrieve metadata for IdP ' .
var_export($entityId, true) . ' because it isn\'t a valid IdP for this SP.');
Expand Down

0 comments on commit d3fd822

Please sign in to comment.