Commit 6387059

mo <mo@mokhan.ca>
2017-11-20 23:16:33
add binary to decode http-post encoding.
1 parent 3ec450c
Changed files (1)
exe/saml-kit-decode-http-post
@@ -0,0 +1,8 @@
+#!/usr/bin/env ruby
+require 'saml/kit'
+
+saml = STDIN.read
+
+binding = Saml::Kit::HttpPostBinding.new(location: '')
+xml = binding.deserialize('SAMLRequest' => saml).to_xml
+puts Nokogiri::XML(xml).to_xml(indent: 2)