Commit 1181741

mo <mo.khan@gmail.com>
2018-02-26 01:26:57
use xpath instead of hash lookup.
1 parent d73a510
Changed files (1)
lib
saml
lib/saml/kit/document.rb
@@ -34,7 +34,7 @@ module Saml
 
       # Returns the Issuer for the SAML document.
       def issuer
-        root.fetch('Issuer', nil)
+        at_xpath('/*/saml:Issuer').try(:text)
       end
 
       # Returns the Version of the SAML document.