Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signature Validation Failed (Namirial) #111

Open
i1990jain opened this issue May 22, 2020 · 2 comments
Open

Signature Validation Failed (Namirial) #111

i1990jain opened this issue May 22, 2020 · 2 comments

Comments

@i1990jain
Copy link

i1990jain commented May 22, 2020

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

if (!SignatureUtils::validateXmlSignature($responseSignature, $cert) ||

@lrealdi
Copy link

lrealdi commented May 31, 2021

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());

Opencontent pushed a commit to OpencontentCoop/spid-php-lib that referenced this issue May 31, 2021
@fabio0
Copy link

fabio0 commented Jun 10, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants