Commit be0e929

mo <mo.khan@gmail.com>
2018-02-15 23:43:27
fetch last assertion.
1 parent 5074421
Changed files (1)
lib
saml
lib/saml/kit/response.rb
@@ -18,7 +18,7 @@ module Saml
       def assertion(private_keys = configuration.private_keys(use: :encryption))
         @assertion ||=
           begin
-            node = at_xpath(Saml::Kit::Assertion::XPATH)
+            node = assertion_nodes.last
             if node.nil?
               Saml::Kit::NullAssertion.new
             else