Commit 753276b

mo <mo.khan@gmail.com>
2018-02-26 00:47:00
remove xml_hash from assertion.
1 parent d892f9e
Changed files (1)
lib
lib/saml/kit/assertion.rb
@@ -18,7 +18,6 @@ module Saml
       def initialize(node, configuration: Saml::Kit.configuration, private_keys: [])
         @name = 'Assertion'
         @node = node
-        @xml_hash = hash_from(node)['Response'] || {}
         @configuration = configuration
         @occurred_at = Time.current
         private_keys = (configuration.private_keys(use: :encryption) + private_keys).uniq
@@ -137,11 +136,6 @@ module Saml
       def search(xpath)
         @node.search(xpath, Saml::Kit::Document::NAMESPACES)
       end
-
-      def hash_from(node)
-        return {} if node.nil?
-        Hash.from_xml(node.document.root.to_s) || {}
-      end
     end
   end
 end