SAML-Toolkits / java-saml

Java SAML toolkit
MIT License
634 stars 396 forks source link

Signature validation failed. SAML Response rejected #399

Open Jie-YangZeng opened 1 year ago

Jie-YangZeng commented 1 year ago

Hello, I created a java project according to Onelogin's SSO document "Code Your Java App to Provide SSO via OneLogin".

There is successful access to the Idp authentication page

image

However, after verifying the password, it cannot jump to SP smoothly and the following error message will pop up

image

I would like to ask if there are any suggestions about this error

pitbulk commented 1 year ago

Signature validation error means that the java-saml was not able to validate the Signature inside the Message/Assertion.

The most typical case is that you have not registered the right IdP x509 public cert on the java-saml setting.

onelogin.saml2.idp.x509cert