saml-kit 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/saml-kit-decode-http-redirect +10 -3
- data/lib/saml/kit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a6f4a6a0647cd31ca56459bcc2c1925a1cc4842d86626b44ac72cbe9df0d91d
|
4
|
+
data.tar.gz: 9b82a518435e992fe4e034eea0da43ffcde66f6e1cad26f3d87d39b0b4d17dac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d1c8f0652f11111137a40b9a95a7430879fbc19b14993919d7309a4f1c2f50cd2041bf40928e9513b950508c41cc58acd666bcb2be8b2bfc474844e2cb4e5d2
|
7
|
+
data.tar.gz: ea30a028893904452ef216f56001a9a84681f09a31fa62d324651aa59112f7179974740070d21918f58b764c0709af4943501c9d0e2e1965d3e6e327e03834f3
|
@@ -1,6 +1,13 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'saml/kit'
|
3
3
|
|
4
|
-
|
5
|
-
binding = Saml::Kit::Bindings::
|
6
|
-
|
4
|
+
input = STDIN.read
|
5
|
+
binding = Saml::Kit::Bindings::HttpRedirect.new(location: '')
|
6
|
+
|
7
|
+
uri = URI.parse(input) rescue nil
|
8
|
+
if uri
|
9
|
+
query_params = Hash[uri.query.split('&').map { |x| x.split('=', 2) }]
|
10
|
+
puts binding.deserialize(query_params).to_xml(pretty: true)
|
11
|
+
else
|
12
|
+
puts binding.deserialize('SAMLRequest' => input).to_xml(pretty: true)
|
13
|
+
end
|
data/lib/saml/kit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saml-kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mo khan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|