SAML authentication using PingFederate fails to verify the certificate signature

SAML authentication using PingFederate fails to verify the certificate signature

129
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 15:57 PM


Symptom


When configuring SAML authentication with PingFederate as the IDP, the validation of the SAML response could not be successfully performed.

In PVWA.App.log, we can see the following error:
Failed to receive an SSO response from the identity provider ComponentSpace.SAML2.Exceptions.SAMLSignatureException: The SAML response signature failed to verify.
at ComponentSpace.SAML2.InternalSAMLServiceProvider.VerifySAMLResponseSignature(XmlElement samlResponseElement)


A closer look at the SAML response will show unexpected line breaks encoded as ‘&#13’.


Environment


12.2;12.6;13.0;13.2 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access
Password Vault Web Access Authentications


Cause


This is Due to upgrading to PingFederate 11 which included an update to Apache XML Security (Apache Santuario) which has resulted in this change.

More info can be found via the below URL link:
https://support.pingidentity.com/s/article/Newline-Characters-in-SAML-after-upgrade-to-PF-11


Resolution


This workaround is provided by PingFederate-

There is an optional workaround that can be applied within PingFederate:
  1. Update "org.apache.xml.security.ignoreLineBreaks" in PingFederate's run.properties file from "false" to "true"
  2. Restart the PingFederate service
  3. Repeat steps 1 and 2 on all PingFederate cluster members


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj00000014MYCAY&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail