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 +4 -4
- data/lib/saml/elements/subject.rb +12 -5
- data/lib/saml/elements/subject_confirmation.rb +1 -2
- 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: 1abc1e57b5668fbb7e99d71eab94b58c2f012289
|
4
|
+
data.tar.gz: c371d9077e1afa0338312e284567a11abb8016d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 :
|
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
|
-
@
|
24
|
-
|
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
|
-
|
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),
|
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.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-
|
11
|
+
date: 2015-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|