Commit ff7ed36

mo <mo.khan@gmail.com>
2017-12-28 18:56:36
fix exes
1 parent 99fe835
exe/saml-kit-decode-http-post
@@ -2,7 +2,5 @@
 require 'saml/kit'
 
 saml = STDIN.read
-
 binding = Saml::Kit::Bindings::HttpPost.new(location: '')
-xml = binding.deserialize('SAMLRequest' => saml).to_xml
-puts Nokogiri::XML(xml).to_xml(indent: 2)
+puts binding.deserialize('SAMLRequest' => saml).to_xml(pretty: true)
exe/saml-kit-decode-http-redirect
@@ -2,6 +2,5 @@
 require 'saml/kit'
 
 saml = STDIN.read
-binding = Saml::Kit::HttpRedirectBinding.new(location: '')
-xml = binding.deserialize('SAMLRequest' => saml).to_xml
-puts Nokogiri::XML(xml).to_xml(indent: 2)
+binding = Saml::Kit::Bindings::HttpRedirectBinding.new(location: '')
+puts binding.deserialize('SAMLRequest' => saml).to_xml(pretty: true)