libsaml 2.10.4 → 2.10.5

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: 3e8adc040a540fddff5bdc779e92aa63f0ff940a
4
- data.tar.gz: 9f571bb8cddfedde9507311d36722be80fee3684
3
+ metadata.gz: 1abc1e57b5668fbb7e99d71eab94b58c2f012289
4
+ data.tar.gz: c371d9077e1afa0338312e284567a11abb8016d1
5
5
  SHA512:
6
- metadata.gz: d5fc5d8ffe6ca18356b5cb72d2d1173814110e32b915897a2ea7c8900fcae14a550ecc62bcb43c742794f6d6c31911b3eedc537d142a6ad988e22bb3cf34a566
7
- data.tar.gz: 6a851095243f585aa262ffaa2c666df49457bcc741ea602b180872654ec1fdc05e03066d88a7c9c52d8c2ceb7546dfcea44a3d9acf07686730a3cf647146cf8e
6
+ metadata.gz: 6f557ae33cee2a2c38d14cb02918bbd2d729bf2dead811d6dc9ae312bd526ffe8af2a863fb9ba9df38c72cb366e1195297035a5c1bd853c04ba21663b72ebbc3
7
+ data.tar.gz: 57ba880bac233c7d3fea889cc8c1e31a234659e18a4e01bf680970fc5b8561e673ea91c0a820567e3a8ae18ab3526853813a5d6ff9cbd40e2fca4f48e871ee6a
@@ -10,18 +10,17 @@ module Saml
10
10
  has_one :_name_id, Saml::Elements::NameId
11
11
  has_one :encrypted_id, Saml::Elements::EncryptedID
12
12
 
13
- has_many :subject_confirmation, Saml::Elements::SubjectConfirmation
14
-
15
- validates :subject_confirmation, presence: true
13
+ has_many :subject_confirmations, Saml::Elements::SubjectConfirmation
16
14
 
15
+ validates :subject_confirmations, presence: true
17
16
  validate :check_identifier
18
17
 
19
18
  def initialize(*args)
20
19
  options = args.extract_options!
21
20
  @_name_id = Saml::Elements::NameId.new(format: options.delete(:name_id_format),
22
21
  value: options.delete(:name_id))
23
- @subject_confirmation = Saml::Elements::SubjectConfirmation.new(recipient: options.delete(:recipient),
24
- in_response_to: options.delete(:in_response_to))
22
+ @subject_confirmations = [Saml::Elements::SubjectConfirmation.new(recipient: options.delete(:recipient),
23
+ in_response_to: options.delete(:in_response_to))]
25
24
  super(*(args << options))
26
25
  end
27
26
 
@@ -37,6 +36,14 @@ module Saml
37
36
  @_name_id.format
38
37
  end
39
38
 
39
+ def subject_confirmation
40
+ subject_confirmations.first
41
+ end
42
+
43
+ def subject_confirmation=(subject_confirmation)
44
+ self.subject_confirmations = [subject_confirmation]
45
+ end
46
+
40
47
  private
41
48
 
42
49
  def check_identifier
@@ -13,11 +13,10 @@ module Saml
13
13
 
14
14
  attribute :_method, String, :tag => 'Method'
15
15
 
16
- has_many :subject_confirmation_data, Saml::Elements::SubjectConfirmationData
16
+ has_one :subject_confirmation_data, Saml::Elements::SubjectConfirmationData
17
17
 
18
18
  validates :_method, :presence => true
19
19
 
20
-
21
20
  def initialize(*args)
22
21
  options = args.extract_options!
23
22
  @subject_confirmation_data = Saml::Elements::SubjectConfirmationData.new(:recipient => options.delete(:recipient),
@@ -1,3 +1,3 @@
1
1
  module Saml
2
- VERSION = "2.10.4"
2
+ VERSION = "2.10.5"
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.4
4
+ version: 2.10.5
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-05 00:00:00.000000000 Z
11
+ date: 2015-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport