ruby-saml-mod 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/onelogin/saml/response.rb +6 -0
- data/ruby-saml-mod.gemspec +2 -2
- metadata +9 -4
@@ -12,6 +12,12 @@ module Onelogin::Saml
|
|
12
12
|
@session_index = @document.elements["/samlp:Response/saml:Assertion/saml:AuthnStatement"].attributes["SessionIndex"] rescue nil
|
13
13
|
@status_code = @document.elements["/samlp:Response/samlp:Status/samlp:StatusCode"].attributes["Value"] rescue nil
|
14
14
|
@status_message = @document.elements["/samlp:Response/samlp:Status/samlp:StatusCode"].text rescue nil
|
15
|
+
# look for saml2 and saml2p tags in Shibboleth assertions
|
16
|
+
@name_id ||= @document.elements["/saml2p:Response/saml2:Assertion/saml2:Subject/saml2:NameID"].text rescue nil
|
17
|
+
@name_qualifier ||= @document.elements["/saml2p:Response/saml2:Assertion/saml2:Subject/saml2:NameID"].attributes["NameQualifier"] rescue nil
|
18
|
+
@session_index ||= @document.elements["/saml2p:Response/saml2:Assertion/saml2:AuthnStatement"].attributes["SessionIndex"] rescue nil
|
19
|
+
@status_code ||= @document.elements["/saml2p:Response/saml2p:Status/saml2p:StatusCode"].attributes["Value"] rescue nil
|
20
|
+
@status_message ||= @document.elements["/saml2p:Response/saml2p:Status/saml2p:StatusCode"].text rescue nil
|
15
21
|
end
|
16
22
|
|
17
23
|
def logger=(val)
|
data/ruby-saml-mod.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{ruby-saml-mod}
|
3
|
-
s.version = "0.1.
|
3
|
+
s.version = "0.1.1"
|
4
4
|
|
5
5
|
s.authors = ["OneLogin LLC", "Bracken"]
|
6
6
|
s.date = %q{2011-01-26}
|
@@ -25,4 +25,4 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.require_paths = ["lib"]
|
26
26
|
s.summary = %q{Ruby library for SAML service providers}
|
27
27
|
s.description = %q{This is an early fork from https://github.com/onelogin/ruby-saml - I plan to "rebase" these changes ontop of their current version eventually. }
|
28
|
-
end
|
28
|
+
end
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-saml-mod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 25
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- OneLogin LLC
|
@@ -50,23 +51,27 @@ rdoc_options: []
|
|
50
51
|
require_paths:
|
51
52
|
- lib
|
52
53
|
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
53
55
|
requirements:
|
54
56
|
- - ">="
|
55
57
|
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
56
59
|
segments:
|
57
60
|
- 0
|
58
61
|
version: "0"
|
59
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
60
64
|
requirements:
|
61
65
|
- - ">="
|
62
66
|
- !ruby/object:Gem::Version
|
67
|
+
hash: 3
|
63
68
|
segments:
|
64
69
|
- 0
|
65
70
|
version: "0"
|
66
71
|
requirements: []
|
67
72
|
|
68
73
|
rubyforge_project:
|
69
|
-
rubygems_version: 1.
|
74
|
+
rubygems_version: 1.6.2
|
70
75
|
signing_key:
|
71
76
|
specification_version: 3
|
72
77
|
summary: Ruby library for SAML service providers
|