spid-es 0.0.32 → 0.0.37

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afd826c70f90739045be11c8bfc34e703e2fdf45cb4059fbff53863b34f80126
4
- data.tar.gz: eb412f78bb1ad1e5498f7e7f2a3ed8683b2d527571327b71595b3a01fe01af6d
3
+ metadata.gz: b485b1feeb1b83e2924dd51120876189dbe5640bca45b8130213203b5790c495
4
+ data.tar.gz: a60a8b7a7179fbae9b10f5c4ee2fe447605127e37bf8ca4b80945683e2594d2b
5
5
  SHA512:
6
- metadata.gz: edb1f2460b97716cbf230cd319364cf015b06cee61af607b031925787c4cc04ddaebfb742e4ad504f24cdb595a82d6b7ad5551dc3fcfaf4e5c12247edd164bb5
7
- data.tar.gz: 126404ab5a6bc21ced03cc974f5ffb8947b1d6e0d2cf61045b9d2c2dbff03a34aafb13082de63004e7b568f640dfe4f2a937e8a777bf52386157fc15f690b852
6
+ metadata.gz: 9760018b318d2e972e6e6ad4c3d10c27bf40f44e0387bf8c7e3e6fc7852e646f847c4e1c747bd95aa47f6e8dd88d0a84105eba1781880d203221c4af287796e4
7
+ data.tar.gz: cd6e83e3eb023f934f1947dbd21e18637f79a9961960c99935ca7f3ea4e1b3ff28bd4cd015737265704eff08e01629b37131e4bab7c3998b53c30a856c8918fa
@@ -54,20 +54,20 @@ module Spid::Saml
54
54
 
55
55
  unless @settings.issuer.blank?
56
56
  issuer = root.add_element "saml:Issuer"
57
- issuer.attributes['NameQualifier'] = @settings.issuer #non metto @settings.sp_name_qualifier, questo valore deve essere uguale al
58
- #entityID dei metadata che usa @settings.issuer
59
- issuer.attributes['Format'] = "urn:oasis:names:tc:SAML:2.0:nameid-format:entity"
60
- issuer.text = @settings.issuer
57
+ #tolto NameQualifier, con aggregatore non mettendolo corrispondente all'entity_id non funziona...
58
+ #issuer.attributes['NameQualifier'] = ( @settings.aggregato ? @settings.sp_name_qualifier : @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
- 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
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
- company = contact_person_aggregatore.add_element "md:Company"
260
- company.text = settings.hash_aggregatore['soggetto_aggregatore']
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
- email_address = contact_person_aggregatore.add_element "md:EmailAddress"
265
- email_address.text = settings.hash_aggregatore['email_aggregatore']
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
- telephone_number = contact_person_aggregatore.add_element "md:TelephoneNumber"
270
- telephone_number.text = settings.hash_aggregatore['telefono_aggregatore']
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", {
@@ -276,21 +276,34 @@ module Spid
276
276
  }
277
277
 
278
278
  extensions_aggregato = contact_person_aggregato.add_element "md:Extensions"
279
- unless settings.hash_aggregatore['soggetto_aggregato']['vat_number'].blank?
280
- vat_number_aggregato = extensions_aggregato.add_element "spid:VATNumber"
281
- vat_number_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['vat_number']
282
- end
283
279
  unless settings.hash_aggregatore['soggetto_aggregato']['ipa_code'].blank?
284
280
  ipa_code_aggregato = extensions_aggregato.add_element "spid:IPACode"
285
281
  ipa_code_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['ipa_code']
286
282
  end
283
+ unless settings.hash_aggregatore['soggetto_aggregato']['vat_number'].blank?
284
+ vat_number_aggregato = extensions_aggregato.add_element "spid:VATNumber"
285
+ vat_number_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['vat_number']
286
+ end
287
287
  unless settings.hash_aggregatore['soggetto_aggregato']['fiscal_code'].blank?
288
288
  fiscal_code_aggregato = extensions_aggregato.add_element "spid:FiscalCode"
289
289
  fiscal_code_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['fiscal_code']
290
290
  end
291
+ unless settings.hash_aggregatore['soggetto_aggregato']['ipa_code'].blank?
292
+ tipo_aggregato = extensions_aggregato.add_element "spid:Public"
293
+ end
294
+
295
+ company_aggregato = contact_person_aggregato.add_element "md:Company"
296
+ company_aggregato.text = settings.organization['org_name']
291
297
 
292
- company = contact_person_aggregato.add_element "md:Company"
293
- company.text = settings.organization['org_name']
298
+ unless settings.hash_aggregatore['soggetto_aggregato']['email_address'].blank?
299
+ email_address_aggregato = contact_person_aggregato.add_element "md:EmailAddress"
300
+ email_address_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['email_address']
301
+ end
302
+
303
+ unless settings.hash_aggregatore['soggetto_aggregato']['telephone_number'].blank?
304
+ telephone_number_aggregato = contact_person_aggregato.add_element "md:TelephoneNumber"
305
+ telephone_number_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['telephone_number']
306
+ end
294
307
 
295
308
  end
296
309
 
@@ -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.32'
5
+ s.version = '0.0.37'
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.32
4
+ version: 0.0.37
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-08-28 00:00:00.000000000 Z
11
+ date: 2020-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: canonix