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 191f293 commit d206580Copy full SHA for d206580
lib/samlr/assertion.rb
@@ -16,18 +16,16 @@ def verify!
16
end
17
18
def location
19
- @location ||= begin
+ @location ||= if !signature.missing?
20
verify_signature!
21
22
- if !signature.missing?
23
- if signature.references.any?
24
- "//saml:Assertion[@ID='#{signature.references.first.uri}']"
25
- else
26
- raise SignatureError.new("Missing references inside checked signature")
27
- end
+ if signature.references.any?
+ "//saml:Assertion[@ID='#{signature.references.first.uri}']"
28
else
29
- DEFAULT_LOCATION
+ raise SignatureError.new("Missing references inside checked signature")
30
+ else
+ DEFAULT_LOCATION
31
32
33
0 commit comments