libsaml 2.10.6 → 2.10.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/saml/assertion.rb +12 -4
- data/lib/saml/complex_types/advice_type.rb +1 -0
- data/lib/saml/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dd0cc7b44a084365c2db763b9b5ba35e3ef0b03
|
4
|
+
data.tar.gz: fcea4d7d971ca1e81c8c785956485e1d7e02ffa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: feed9f26c8f86399aee21bcd0137b0af7499c032835ef879bde203ad42126b86a1edd580922cd9cb020b36d7ff49953a25a44c90f553719b2aaecc97bdb1df03
|
7
|
+
data.tar.gz: b6ec97cc457f7922ed7457795b9071d57871830c00f58e0a17bc7b346d08970a3828a93d9e4b5c69b4f2024d4414b84d15043270782290ce158537c2df00b52b
|
data/lib/saml/assertion.rb
CHANGED
@@ -21,7 +21,7 @@ module Saml
|
|
21
21
|
has_one :advice, Saml::Elements::Advice
|
22
22
|
has_many :statements, Saml::ComplexTypes::StatementAbstractType
|
23
23
|
has_many :authn_statement, Saml::Elements::AuthnStatement
|
24
|
-
|
24
|
+
has_many :attribute_statements, Saml::Elements::AttributeStatement
|
25
25
|
|
26
26
|
validates :_id, :version, :issue_instant, :issuer, :presence => true
|
27
27
|
|
@@ -62,9 +62,17 @@ module Saml
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def fetch_attributes(key)
|
65
|
-
return unless self.
|
66
|
-
return unless self.
|
67
|
-
attribute_statement.fetch_attributes(key)
|
65
|
+
return unless self.attribute_statements
|
66
|
+
return unless self.attribute_statements.flat_map(&:attribute)
|
67
|
+
attribute_statements.flat_map { |attribute_statement| attribute_statement.fetch_attributes(key) }
|
68
|
+
end
|
69
|
+
|
70
|
+
def attribute_statement
|
71
|
+
attribute_statements.try(:first)
|
72
|
+
end
|
73
|
+
|
74
|
+
def attribute_statement=(attribute_statement)
|
75
|
+
self.attribute_statements = [attribute_statement]
|
68
76
|
end
|
69
77
|
|
70
78
|
private
|
data/lib/saml/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libsaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.10.
|
4
|
+
version: 2.10.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoist Claassen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|