Skip to content

Commit

Permalink
display error message when it is found that the certificates from idp…
Browse files Browse the repository at this point in the history
… and saml response do no match
  • Loading branch information
FabioCareMonkey committed Sep 19, 2020
1 parent a4dc9d3 commit 229221e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xml_security.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def validate_document_with_cert(idp_cert, soft = true)

# check saml response cert matches provided idp cert
if idp_cert.to_pem != cert.to_pem
return false
return append_error("SAML response certificate does not match idp certificate", soft)
end
else
base64_cert = Base64.encode64(idp_cert.to_pem)
Expand Down

0 comments on commit 229221e

Please sign in to comment.