spid-php-lib icon indicating copy to clipboard operation
spid-php-lib copied to clipboard

Signature Validation Failed (Namirial)

Open i1990jain opened this issue 5 years ago • 2 comments

While using IDPs like aruba, poste etc. the users are successfully able to login. Instead in the case of Namirial the server always gives:

Invalid Response. Signature validation failed

from

https://github.com/italia/spid-php-lib/blob/50d7979e3abfe047f21c92c04bba9897724450cf/src/Spid/Saml/In/BaseResponse.php#L99

i1990jain avatar May 22 '20 10:05 i1990jain

It works fixing /src/Spid/Saml/Idp.php from $metadata['idpCertValue'] = self::formatCert($xml->xpath('//ds:X509Certificate')[0]->__toString()); to $metadata['idpCertValue'] = self::formatCert($xml->xpath('//md:IDPSSODescriptor//ds:X509Certificate')[0]->__toString());

lrealdi avatar May 31 '21 11:05 lrealdi

It works fixing /src/Spid/Saml/Idp.php from $metadata['idpCertValue'] = self::formatCert($xml->xpath('//ds:X509Certificate')[0]->__toString()); to $metadata['idpCertValue'] = self::formatCert($xml->xpath('//md:IDPSSODescriptor//ds:X509Certificate')[0]->__toString());

Occhio che poi non funziona con LEPIDA, meglio un condizionale

fabio0 avatar Jun 10 '21 11:06 fabio0