ruby-saml-mod 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/onelogin/saml/response.rb +9 -3
- data/ruby-saml-mod.gemspec +2 -2
- metadata +4 -4
@@ -10,9 +10,15 @@ module Onelogin::Saml
|
|
10
10
|
@response = response
|
11
11
|
@settings = settings
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
begin
|
14
|
+
@xml = Base64.decode64(@response)
|
15
|
+
@document = LibXML::XML::Document.string(@xml)
|
16
|
+
@document.extend(XMLSecurity::SignedDocument)
|
17
|
+
rescue => e
|
18
|
+
# could not parse document, everything is invalid
|
19
|
+
@response = nil
|
20
|
+
return
|
21
|
+
end
|
16
22
|
|
17
23
|
@decrypted_document = LibXML::XML::Document.document(@document)
|
18
24
|
@decrypted_document.extend(XMLSecurity::SignedDocument)
|
data/ruby-saml-mod.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-saml-mod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 10
|
10
|
+
version: 0.1.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- OneLogin LLC
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2012-04-
|
21
|
+
date: 2012-04-30 00:00:00 Z
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
24
24
|
name: libxml-ruby
|