spid-es 0.0.33 → 0.0.38
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/authrequest.rb +12 -12
- data/lib/spid/ruby-saml/metadata.rb +12 -12
- data/spid-es.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43511d1bfcfa0c3d26ebe86af1b4df7982c8098b1a87c5e88b738a5d3ddd1752
|
4
|
+
data.tar.gz: b7f45ba12ac29fd36c4508801a98d18eede9f83c402eb444a5bc7bc2594fcf3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b6d6864298f3d1702420fa900cbd1567d56ea6e20150eec2a8724ce2abf44325fa042a2ffcda49d9273fc67123160700fe861652e84beef33b48d9da2fcba67
|
7
|
+
data.tar.gz: 52a4f51372a3b5ff32adbaa4b69465be54ceeb689c13d5d07e952365b86c86e4b21ee71e8ee9996023ecbf2e4772530e0e695a058efbe0d3eec51deb6123ad8f
|
@@ -54,20 +54,20 @@ module Spid::Saml
|
|
54
54
|
|
55
55
|
unless @settings.issuer.blank?
|
56
56
|
issuer = root.add_element "saml:Issuer"
|
57
|
-
|
58
|
-
|
59
|
-
issuer.attributes['Format'] =
|
60
|
-
issuer.text = @settings.issuer
|
57
|
+
#l'attributo NameQualifier deve essere presente, non rispetta saml...e deve essere uguale al valore dell'issuer
|
58
|
+
issuer.attributes['NameQualifier'] = @settings.issuer
|
59
|
+
issuer.attributes['Format'] = "urn:oasis:names:tc:SAML:2.0:nameid-format:entity"
|
60
|
+
issuer.text = @settings.issuer #questo valore deve essere uguale al #entityID dei metadata che usa @settings.issuer
|
61
61
|
end
|
62
62
|
|
63
|
-
#opzionale
|
64
|
-
unless @settings.sp_name_qualifier.blank?
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
end
|
63
|
+
# #opzionale
|
64
|
+
# unless @settings.sp_name_qualifier.blank?
|
65
|
+
# subject = root.add_element "saml:Subject"
|
66
|
+
# name_id = subject.add_element "saml:NameID"
|
67
|
+
# name_id.attributes['Format'] = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
|
68
|
+
# name_id.attributes['NameQualifier'] = @settings.sp_name_qualifier
|
69
|
+
# name_id.text = @settings.sp_name_identifier
|
70
|
+
# end
|
71
71
|
|
72
72
|
|
73
73
|
|
@@ -256,18 +256,18 @@ module Spid
|
|
256
256
|
tipo_aggregatore = extensions_aggregatore.add_element "spid:PublicServicesFullAggregator"
|
257
257
|
|
258
258
|
unless settings.hash_aggregatore['soggetto_aggregatore'].blank?
|
259
|
-
|
260
|
-
|
259
|
+
company_aggregatore = contact_person_aggregatore.add_element "md:Company"
|
260
|
+
company_aggregatore.text = settings.hash_aggregatore['soggetto_aggregatore']
|
261
261
|
end
|
262
262
|
|
263
263
|
unless settings.hash_aggregatore['email_aggregatore'].blank?
|
264
|
-
|
265
|
-
|
264
|
+
email_address_aggregatore = contact_person_aggregatore.add_element "md:EmailAddress"
|
265
|
+
email_address_aggregatore.text = settings.hash_aggregatore['email_aggregatore']
|
266
266
|
end
|
267
267
|
|
268
268
|
unless settings.hash_aggregatore['telefono_aggregatore'].blank?
|
269
|
-
|
270
|
-
|
269
|
+
telephone_number_aggregatore = contact_person_aggregatore.add_element "md:TelephoneNumber"
|
270
|
+
telephone_number_aggregatore.text = settings.hash_aggregatore['telefono_aggregatore']
|
271
271
|
end
|
272
272
|
|
273
273
|
contact_person_aggregato = root.add_element "md:ContactPerson", {
|
@@ -292,17 +292,17 @@ module Spid
|
|
292
292
|
tipo_aggregato = extensions_aggregato.add_element "spid:Public"
|
293
293
|
end
|
294
294
|
|
295
|
-
|
296
|
-
|
295
|
+
company_aggregato = contact_person_aggregato.add_element "md:Company"
|
296
|
+
company_aggregato.text = settings.organization['org_name']
|
297
297
|
|
298
298
|
unless settings.hash_aggregatore['soggetto_aggregato']['email_address'].blank?
|
299
|
-
|
300
|
-
|
299
|
+
email_address_aggregato = contact_person_aggregato.add_element "md:EmailAddress"
|
300
|
+
email_address_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['email_address']
|
301
301
|
end
|
302
302
|
|
303
303
|
unless settings.hash_aggregatore['soggetto_aggregato']['telephone_number'].blank?
|
304
|
-
|
305
|
-
|
304
|
+
telephone_number_aggregato = contact_person_aggregato.add_element "md:TelephoneNumber"
|
305
|
+
telephone_number_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['telephone_number']
|
306
306
|
end
|
307
307
|
|
308
308
|
end
|
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.38'
|
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.38
|
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-10-
|
11
|
+
date: 2020-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: canonix
|