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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c265030158cd3962d14694a03d018031eb2032f
4
- data.tar.gz: cb24d11620c27b5e2f7a6ee9b03af87965b52f2d
3
+ metadata.gz: 6dd0cc7b44a084365c2db763b9b5ba35e3ef0b03
4
+ data.tar.gz: fcea4d7d971ca1e81c8c785956485e1d7e02ffa4
5
5
  SHA512:
6
- metadata.gz: e9e951bdb555c276802759ca64bfbf86ce724aa173a67dfb4f4f9d532c7f2d691a59ba2d71825895cbeec24d66c576deccf115d83cc86664f60453eec98a2956
7
- data.tar.gz: b5d00d85047b287124605f4273d8a8c476881cbbaef2710386bacdbdadf030d46c7787288c65327affba3c492e60a1a54aa1e57c26d16017ce3ed76b20076733
6
+ metadata.gz: feed9f26c8f86399aee21bcd0137b0af7499c032835ef879bde203ad42126b86a1edd580922cd9cb020b36d7ff49953a25a44c90f553719b2aaecc97bdb1df03
7
+ data.tar.gz: b6ec97cc457f7922ed7457795b9071d57871830c00f58e0a17bc7b346d08970a3828a93d9e4b5c69b4f2024d4414b84d15043270782290ce158537c2df00b52b
@@ -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
- has_one :attribute_statement, Saml::Elements::AttributeStatement
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.attribute_statement
66
- return unless self.attribute_statement.attribute
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
@@ -8,6 +8,7 @@ module Saml
8
8
  require 'saml/assertion'
9
9
 
10
10
  has_many :assertions, ::Saml::Assertion
11
+ has_many :assertion_id_refs, String, tag: 'AssertionIDRef'
11
12
  end
12
13
  end
13
14
  end
data/lib/saml/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Saml
2
- VERSION = "2.10.6"
2
+ VERSION = "2.10.7"
3
3
  end
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.6
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-06 00:00:00.000000000 Z
11
+ date: 2015-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport