spid-es 0.0.27 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spid/ruby-saml/metadata.rb +37 -14
- data/spid-es.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afd826c70f90739045be11c8bfc34e703e2fdf45cb4059fbff53863b34f80126
|
4
|
+
data.tar.gz: eb412f78bb1ad1e5498f7e7f2a3ed8683b2d527571327b71595b3a01fe01af6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edb1f2460b97716cbf230cd319364cf015b06cee61af607b031925787c4cc04ddaebfb742e4ad504f24cdb595a82d6b7ad5551dc3fcfaf4e5c12247edd164bb5
|
7
|
+
data.tar.gz: 126404ab5a6bc21ced03cc974f5ffb8947b1d6e0d2cf61045b9d2c2dbff03a34aafb13082de63004e7b568f640dfe4f2a937e8a777bf52386157fc15f690b852
|
@@ -5,7 +5,6 @@ require "uri"
|
|
5
5
|
require "digest/md5"
|
6
6
|
require "nokogiri"
|
7
7
|
require_relative "../xml_security_new" #fa il require della nokogiri
|
8
|
-
require "uuid"
|
9
8
|
|
10
9
|
# Class to return SP metadata based on the settings requested.
|
11
10
|
# Return this XML in a controller, then give that URL to the the
|
@@ -50,7 +49,7 @@ module Spid
|
|
50
49
|
#Tolto per non far cambiare sempre il metadata
|
51
50
|
#uuid = "_" + UUID.new.generate
|
52
51
|
#genero l'id come hash dell'entityID
|
53
|
-
uuid = "_"
|
52
|
+
uuid = "_"+Digest::MD5.hexdigest(settings.issuer)
|
54
53
|
self.uuid = uuid
|
55
54
|
root.attributes["ID"] = uuid
|
56
55
|
|
@@ -224,7 +223,7 @@ module Spid
|
|
224
223
|
"xml:lang" => "it"
|
225
224
|
}
|
226
225
|
|
227
|
-
org_display_name.text = settings.organization['org_display_name']
|
226
|
+
org_display_name.text = settings.organization['org_display_name'] #+(settings.aggregato ? " tramite #{settings.hash_aggregatore['soggetto_aggregatore']}" : '')
|
228
227
|
org_url = organization.add_element "md:OrganizationURL", {
|
229
228
|
"xml:lang" => "it"
|
230
229
|
}
|
@@ -236,25 +235,45 @@ module Spid
|
|
236
235
|
"contactType" => "other",
|
237
236
|
"spid:entityType" => "spid:aggregator"
|
238
237
|
}
|
239
|
-
company = contact_person_aggregatore.add_element "md:Company"
|
240
|
-
company.text = settings.hash_aggregatore['soggetto_aggregatore']
|
241
238
|
|
242
239
|
extensions_aggregatore = contact_person_aggregatore.add_element "md:Extensions"
|
243
|
-
vat_number_aggregatore = extensions_aggregatore.add_element "spid:VATNumber"
|
244
|
-
vat_number_aggregatore.text = settings.hash_aggregatore['piva_aggregatore']
|
245
|
-
|
246
|
-
ipa_code_aggregatore = extensions_aggregatore.add_element "spid:IPACode"
|
247
|
-
ipa_code_aggregatore.text = settings.hash_aggregatore['cipa_aggregatore']
|
248
240
|
|
249
|
-
|
250
|
-
|
241
|
+
unless settings.hash_aggregatore['piva_aggregatore'].blank?
|
242
|
+
vat_number_aggregatore = extensions_aggregatore.add_element "spid:VATNumber"
|
243
|
+
vat_number_aggregatore.text = settings.hash_aggregatore['piva_aggregatore']
|
244
|
+
end
|
245
|
+
|
246
|
+
unless settings.hash_aggregatore['cipa_aggregatore'].blank?
|
247
|
+
ipa_code_aggregatore = extensions_aggregatore.add_element "spid:IPACode"
|
248
|
+
ipa_code_aggregatore.text = settings.hash_aggregatore['cipa_aggregatore']
|
249
|
+
end
|
250
|
+
|
251
|
+
unless settings.hash_aggregatore['cf_aggregatore'].blank?
|
252
|
+
fiscal_code_aggregatore = extensions_aggregatore.add_element "spid:FiscalCode"
|
253
|
+
fiscal_code_aggregatore.text = settings.hash_aggregatore['cf_aggregatore']
|
254
|
+
end
|
255
|
+
|
256
|
+
tipo_aggregatore = extensions_aggregatore.add_element "spid:PublicServicesFullAggregator"
|
257
|
+
|
258
|
+
unless settings.hash_aggregatore['soggetto_aggregatore'].blank?
|
259
|
+
company = contact_person_aggregatore.add_element "md:Company"
|
260
|
+
company.text = settings.hash_aggregatore['soggetto_aggregatore']
|
261
|
+
end
|
262
|
+
|
263
|
+
unless settings.hash_aggregatore['email_aggregatore'].blank?
|
264
|
+
email_address = contact_person_aggregatore.add_element "md:EmailAddress"
|
265
|
+
email_address.text = settings.hash_aggregatore['email_aggregatore']
|
266
|
+
end
|
267
|
+
|
268
|
+
unless settings.hash_aggregatore['telefono_aggregatore'].blank?
|
269
|
+
telephone_number = contact_person_aggregatore.add_element "md:TelephoneNumber"
|
270
|
+
telephone_number.text = settings.hash_aggregatore['telefono_aggregatore']
|
271
|
+
end
|
251
272
|
|
252
273
|
contact_person_aggregato = root.add_element "md:ContactPerson", {
|
253
274
|
"contactType" => "other",
|
254
275
|
"spid:entityType" => "spid:aggregated"
|
255
276
|
}
|
256
|
-
company = contact_person_aggregato.add_element "md:Company"
|
257
|
-
company.text = settings.organization['org_name']
|
258
277
|
|
259
278
|
extensions_aggregato = contact_person_aggregato.add_element "md:Extensions"
|
260
279
|
unless settings.hash_aggregatore['soggetto_aggregato']['vat_number'].blank?
|
@@ -269,6 +288,10 @@ module Spid
|
|
269
288
|
fiscal_code_aggregato = extensions_aggregato.add_element "spid:FiscalCode"
|
270
289
|
fiscal_code_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['fiscal_code']
|
271
290
|
end
|
291
|
+
|
292
|
+
company = contact_person_aggregato.add_element "md:Company"
|
293
|
+
company.text = settings.organization['org_name']
|
294
|
+
|
272
295
|
end
|
273
296
|
|
274
297
|
#meta_doc << REXML::XMLDecl.new(version='1.0', encoding='UTF-8')
|
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.32'
|
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.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabiano Pavan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: canonix
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
|
-
rubygems_version: 3.0.
|
143
|
+
rubygems_version: 3.0.8
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: SAML Ruby Tookit Spid
|