Sha256: 84e506f3163857e1a7e73f33ebb4266a276d99680136a53a72e6ffe7ffd634b7
Contents?: true
Size: 470 Bytes
Versions: 3
Compression:
Stored size: 470 Bytes
Contents
#!/usr/bin/env ruby require 'saml/kit' Saml::Kit.deprecate("Use the 'saml-kit-cli' gem instead. saml-kit-decode-http-redirect*") input = STDIN.read binding = Saml::Kit::Bindings::HttpRedirect.new(location: '') uri = URI.parse(input) rescue nil if uri query_params = Hash[uri.query.split('&').map { |x| x.split('=', 2) }] puts binding.deserialize(query_params).to_xml(pretty: true) else puts binding.deserialize('SAMLRequest' => input).to_xml(pretty: true) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
saml-kit-1.0.6 | exe/saml-kit-decode-http-redirect |
saml-kit-1.0.5 | exe/saml-kit-decode-http-redirect |
saml-kit-1.0.4 | exe/saml-kit-decode-http-redirect |