saml_idp 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/saml_idp/request.rb +8 -3
- data/lib/saml_idp/version.rb +1 -1
- metadata +4 -4
data/lib/saml_idp/request.rb
CHANGED
@@ -4,9 +4,14 @@ module SamlIdp
|
|
4
4
|
class Request
|
5
5
|
def self.from_deflated_request(raw)
|
6
6
|
zstream = Zlib::Inflate.new(-Zlib::MAX_WBITS)
|
7
|
-
|
8
|
-
|
9
|
-
zstream.
|
7
|
+
decoded = Base64.decode64(raw)
|
8
|
+
begin
|
9
|
+
inflated = zstream.inflate(decoded).tap do
|
10
|
+
zstream.finish
|
11
|
+
zstream.close
|
12
|
+
end
|
13
|
+
rescue Zlib::DataError # not compressed
|
14
|
+
inflated = decoded
|
10
15
|
end
|
11
16
|
new(inflated)
|
12
17
|
end
|
data/lib/saml_idp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saml_idp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -344,7 +344,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
344
344
|
version: '0'
|
345
345
|
segments:
|
346
346
|
- 0
|
347
|
-
hash: -
|
347
|
+
hash: -856421575393033123
|
348
348
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
349
349
|
none: false
|
350
350
|
requirements:
|
@@ -353,7 +353,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
353
353
|
version: '0'
|
354
354
|
segments:
|
355
355
|
- 0
|
356
|
-
hash: -
|
356
|
+
hash: -856421575393033123
|
357
357
|
requirements: []
|
358
358
|
rubyforge_project:
|
359
359
|
rubygems_version: 1.8.25
|