Commit 3fde9ec
2017-11-20 23:16:33
1 parent
6e93048
Changed files (1)
saml-kit
saml-kit/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)