spid-es 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/spid/ruby-saml/response.rb +7 -3
- data/spid-es.gemspec +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: 757c456ca20b577890aade7bd61730625c91afe3
|
|
4
|
+
data.tar.gz: f56e0175f161d092dac32e0ee0a202c5e90f6179
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96713f7825b8786a881ee156682efde3eac3d2be870dbfa18715ec9617f12f95b7d7ef9d4e10fcdb2ab0214b0fceced0c71eab0b761281869eaa91f40532dc30
|
|
7
|
+
data.tar.gz: 6d2929906a4191948e165de95c5bbdc6b52db1d40ed92b70a963f10a7f571dce6d3c2148e8d789fdecf99dc3979135e469264de991afa816e6871f570bc3721c
|
|
@@ -160,14 +160,19 @@ module Spid
|
|
|
160
160
|
return (soft ? false : validation_error("Issuer of the Assertion not found or multiple."))
|
|
161
161
|
end
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
issuer_response_nodes.each{ |iss|
|
|
164
|
+
#controllo: L'attributo Format di Issuer deve essere presente con il valore urn:oasis:names:tc:SAML:2.0:nameid-format:entity
|
|
165
|
+
return (soft ? false : validation_error("Elemento Issuer non ha formato corretto ")) if !iss.attributes['Format'].nil? && iss.attributes['Format'] != 'urn:oasis:names:tc:SAML:2.0:nameid-format:entity'
|
|
166
|
+
|
|
167
|
+
}
|
|
164
168
|
|
|
165
|
-
|
|
169
|
+
issuer_assertion_nodes.each{ |iss|
|
|
166
170
|
#controllo: L'attributo Format di Issuer deve essere presente con il valore urn:oasis:names:tc:SAML:2.0:nameid-format:entity
|
|
167
171
|
return (soft ? false : validation_error("Elemento Issuer non ha formato corretto ")) if iss.attributes['Format'] != 'urn:oasis:names:tc:SAML:2.0:nameid-format:entity'
|
|
168
172
|
|
|
169
173
|
}
|
|
170
174
|
|
|
175
|
+
nodes = issuer_response_nodes + issuer_assertion_nodes
|
|
171
176
|
|
|
172
177
|
nodes.map { |node| Utils.element_text(node) }.compact.uniq
|
|
173
178
|
end
|
|
@@ -175,7 +180,6 @@ module Spid
|
|
|
175
180
|
|
|
176
181
|
|
|
177
182
|
|
|
178
|
-
|
|
179
183
|
def response_to_id
|
|
180
184
|
node = REXML::XPath.first(document, "/p:Response", { "p" => PROTOCOL })
|
|
181
185
|
return node.attributes["InResponseTo"] unless node.blank?
|
data/spid-es.gemspec
CHANGED
|
@@ -2,7 +2,7 @@ $LOAD_PATH.push File.expand_path('../lib', __FILE__)
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = 'spid-es'
|
|
5
|
-
s.version = '0.0.
|
|
5
|
+
s.version = '0.0.21'
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Fabiano Pavan"]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spid-es
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fabiano Pavan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-10-
|
|
11
|
+
date: 2019-10-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: canonix
|