Skip to content

Commit

Permalink
fixing introduced issue
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioCareMonkey committed Sep 19, 2020
1 parent c3d0b71 commit 52868c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/onelogin/ruby-saml/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -863,8 +863,12 @@ def validate_signature
valid = false
expired = false
idp_certs[:signing].each do |idp_cert|
valid = doc.validate_document_with_cert(idp_cert, @soft)
valid = doc.validate_document_with_cert(idp_cert, true)
if valid
# required to reset errors as there could be issues with previous certificates
doc.reset_errors!
reset_errors!

if settings.security[:check_idp_cert_expiration]
if OneLogin::RubySaml::Utils.is_cert_expired(idp_cert)
expired = true
Expand Down

0 comments on commit 52868c4

Please sign in to comment.