We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 059abe4 commit 83aceaaCopy full SHA for 83aceaa
lib/onelogin/ruby-saml/response.rb
@@ -607,10 +607,11 @@ def validate_signature
607
sig_elements = REXML::XPath.match(
608
document,
609
"/p:Response/ds:Signature]",
610
- { "p" => PROTOCOL, "ds" => DSIG },
+ { "p" => PROTOCOL, "ds" => DSIG }
611
)
612
613
- doc = (sig_elements.size == 1 || decrypted_document.nil?) ? document : decrypted_document
+ use_original = sig_elements.size == 1 || decrypted_document.nil?
614
+ doc = use_original ? document : decrypted_document
615
616
# Check signature nodes
617
if sig_elements.nil? || sig_elements.size == 0
0 commit comments