Skip to content

Commit

Permalink
Fix metadata idpCertValue xpath expression (see italia#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrealdi committed May 31, 2021
1 parent 9397667 commit a242958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Spid/Saml/Idp.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function loadFromXml($xmlFile)
$metadata['idpEntityId'] = $xml->attributes()->entityID->__toString();
$metadata['idpSSO'] = $idpSSO;
$metadata['idpSLO'] = $idpSLO;
$metadata['idpCertValue'] = self::formatCert($xml->xpath('//ds:X509Certificate')[0]->__toString());
$metadata['idpCertValue'] = self::formatCert($xml->xpath('//md:IDPSSODescriptor//ds:X509Certificate')[0]->__toString());

$this->idpFileName = $xmlFile;
$this->metadata = $metadata;
Expand Down

0 comments on commit a242958

Please sign in to comment.