libsaml 3.0.2 → 3.0.3
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 +1 -1
- data/lib/saml/authn_request.rb +3 -1
- data/lib/saml/complex_types/request_abstract_type.rb +4 -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: aea6ae9ee997d9685b2413fd82c25c48a4b4f132
|
4
|
+
data.tar.gz: ba2c2031729733af18064cb5a1ae1973fec47812
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 955475bf345648006acece19b62eb68dd0f850835a121a86ef99b80d865afc37eb0db100477cd7932778fd1dd6293083ed582f0afff737a9eccd7af2a2502406
|
7
|
+
data.tar.gz: 20be70406a2eb77d699f9ee9366cac438e2eae6f68254797173d3decc367981c4daa9b4f7decc5271e5f552f5b92a8a9b9764f78bd04fc30a2755806afbe462f
|
data/lib/saml/assertion.rb
CHANGED
@@ -28,7 +28,7 @@ module Saml
|
|
28
28
|
validates :_id, :version, :issue_instant, :issuer, :presence => true
|
29
29
|
|
30
30
|
validates :version, inclusion: %w(2.0)
|
31
|
-
validate :check_issue_instant, :if =>
|
31
|
+
validate :check_issue_instant, :if => lambda { |val| val.issue_instant.present? }
|
32
32
|
|
33
33
|
def initialize(*args)
|
34
34
|
options = args.extract_options!
|
data/lib/saml/authn_request.rb
CHANGED
@@ -16,7 +16,9 @@ module Saml
|
|
16
16
|
has_one :requested_authn_context, Saml::Elements::RequestedAuthnContext
|
17
17
|
|
18
18
|
validates :force_authn, :inclusion => [true, false, nil]
|
19
|
-
validates :assertion_consumer_service_index, :numericality => true, :if =>
|
19
|
+
validates :assertion_consumer_service_index, :numericality => true, :if => lambda { |val|
|
20
|
+
val.assertion_consumer_service_index.present?
|
21
|
+
}
|
20
22
|
|
21
23
|
validate :check_assertion_consumer_service
|
22
24
|
|
@@ -28,8 +28,10 @@ module Saml
|
|
28
28
|
validates :_id, :version, :issue_instant, presence: true
|
29
29
|
|
30
30
|
validates :version, inclusion: %w(2.0)
|
31
|
-
validate :check_destination, if:
|
32
|
-
|
31
|
+
validate :check_destination, if: lambda { |val|
|
32
|
+
val.destination.present? && val.actual_destination.present?
|
33
|
+
}
|
34
|
+
validate :check_issue_instant, if: lambda { |val| val.issue_instant.present? }
|
33
35
|
end
|
34
36
|
|
35
37
|
def initialize(*args)
|
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: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoist Claassen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|