Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

SAML: Signature does not validate against the credential's key



"SAML signature validation failed" error during log in with SAML AutheService.

Error Messages

Caught Exception while processing SAML2 Authentication response Caught Exception while validating SAML2 Authentication response protocol : SAML signature validation failed
at com.pega.pegarules.integration.engine.internal.sso.saml.SAMLv2ResponseProtocolValidator.validate(
at com.pega.pegarules.integration.engine.internal.util.PRSAMLv2Utils.validateResponse(
at com.pega.pegarules.integration.engine.internal.util.PRSAMLv2Utils.processAuthenticationResponse(
at com.pegarules.generated.activity.ra_action_pysamlwebssoauthenticationactivity_02ab975d06af72caead767130cb77400.step15_circum0(
at com.pegarules.generated.activity.ra_action_pysamlwebssoauthenticationactivity_02ab975d06af72caead767130cb77400.perform(
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(
at com.pega.pegarules.session.internal.mgmt.authentication.AuthenticationUtil.runActivity(
at com.pega.pegarules.session.internal.mgmt.authentication.SchemePRCustom.authenticateOperator(
Caused by:
org.apache.wss4j.common.ext.WSSecurityException: SAML signature validation failed
Original Exception was org.opensaml.xml.validation.ValidationException: Signature did not validate against the credential's key
at org.apache.wss4j.common.saml.SamlAssertionWrapper.verifySignature(
at com.pega.pegarules.integration.engine.internal.sso.saml.SAMLv2ResponseProtocolValidator.validateAssertion(
at com.pega.pegarules.integration.engine.internal.sso.saml.SAMLv2ResponseProtocolValidator.validate(
... 68 more
Caused by:
org.opensaml.xml.validation.ValidationException: Signature did not validate against the credential's key
at org.opensaml.xml.signature.SignatureValidator.validate(
at org.apache.wss4j.common.saml.SamlAssertionWrapper.verifySignature(
... 70 more

Steps to Reproduce

Log in with SAML AutheService to observe the error.

Root Cause

The following was sent in the SAMLResponse attributes:


This caused problems with OpenSAML verification of the response.


Remove namespace from the attributes to resolve the issue.
Suggest Edit

Published June 12, 2015 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us