ciam-es 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ciam-es.gemspec +1 -1
- data/lib/ciam/ruby-saml/metadata.rb +2 -51
- data/lib/ciam/ruby-saml/settings.rb +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: 2c95972cdf7b32821388e97e603ea364dc931f90cda2486a5abf1194321c122c
|
4
|
+
data.tar.gz: c4d30ceb0b06f5821bd8b3aebf918633cfcd1e8a1e121cf9e16922be08f8c3a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a417f946d748ddff58a0bd68d12863d3b5e1e76acca57575d5103d78dc40f5fccf5cf251bbd38144a194fc3c0f887684606622351527778b767e9d53693998b
|
7
|
+
data.tar.gz: 00164d85b86389012330941c6d317ab2fdf18b85e9a75b3881f718fc71714832feb65c40c055824d99c26f657362aa79ca49cc7bc0895507bc32e55652d206c6
|
data/ciam-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 = 'ciam-es'
|
5
|
-
s.version = '0.0.
|
5
|
+
s.version = '0.0.4'
|
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"]
|
@@ -30,18 +30,10 @@ module Ciam
|
|
30
30
|
def generate(settings)
|
31
31
|
#meta_doc = REXML::Document.new
|
32
32
|
meta_doc = Ciam::XMLSecurityNew::Document.new
|
33
|
-
|
34
|
-
root = meta_doc.add_element "md:EntityDescriptor", {
|
35
|
-
"xmlns:md" => "urn:oasis:names:tc:SAML:2.0:metadata",
|
36
|
-
"xmlns:xml" => "http://www.w3.org/XML/1998/namespace",
|
37
|
-
"xmlns:ciam" => "https://ciam.gov.it/saml-extensions",
|
38
|
-
}
|
39
|
-
else
|
40
|
-
root = meta_doc.add_element "md:EntityDescriptor", {
|
33
|
+
root = meta_doc.add_element "md:EntityDescriptor", {
|
41
34
|
"xmlns:md" => "urn:oasis:names:tc:SAML:2.0:metadata",
|
42
35
|
"xmlns:xml" => "http://www.w3.org/XML/1998/namespace"
|
43
36
|
}
|
44
|
-
end
|
45
37
|
|
46
38
|
if settings.issuer != nil
|
47
39
|
root.attributes["entityID"] = settings.issuer
|
@@ -223,53 +215,12 @@ module Ciam
|
|
223
215
|
"xml:lang" => "it"
|
224
216
|
}
|
225
217
|
|
226
|
-
org_display_name.text = settings.organization['org_display_name']
|
218
|
+
org_display_name.text = settings.organization['org_display_name']
|
227
219
|
org_url = organization.add_element "md:OrganizationURL", {
|
228
220
|
"xml:lang" => "it"
|
229
221
|
}
|
230
222
|
org_url.text = settings.organization['org_url']
|
231
223
|
|
232
|
-
#ContactPerson per sp aggregato
|
233
|
-
if settings.aggregato
|
234
|
-
contact_person_aggregatore = root.add_element "md:ContactPerson", {
|
235
|
-
"contactType" => "other",
|
236
|
-
"ciam:entityType" => "ciam:aggregator"
|
237
|
-
}
|
238
|
-
company = contact_person_aggregatore.add_element "md:Company"
|
239
|
-
company.text = settings.hash_aggregatore['soggetto_aggregatore']
|
240
|
-
|
241
|
-
extensions_aggregatore = contact_person_aggregatore.add_element "md:Extensions"
|
242
|
-
vat_number_aggregatore = extensions_aggregatore.add_element "ciam:VATNumber"
|
243
|
-
vat_number_aggregatore.text = settings.hash_aggregatore['piva_aggregatore']
|
244
|
-
|
245
|
-
ipa_code_aggregatore = extensions_aggregatore.add_element "ciam:IPACode"
|
246
|
-
ipa_code_aggregatore.text = settings.hash_aggregatore['cipa_aggregatore']
|
247
|
-
|
248
|
-
fiscal_code_aggregatore = extensions_aggregatore.add_element "ciam:FiscalCode"
|
249
|
-
fiscal_code_aggregatore.text = settings.hash_aggregatore['cf_aggregatore']
|
250
|
-
|
251
|
-
contact_person_aggregato = root.add_element "md:ContactPerson", {
|
252
|
-
"contactType" => "other",
|
253
|
-
"ciam:entityType" => "ciam:aggregated"
|
254
|
-
}
|
255
|
-
company = contact_person_aggregato.add_element "md:Company"
|
256
|
-
company.text = settings.organization['org_name']
|
257
|
-
|
258
|
-
extensions_aggregato = contact_person_aggregato.add_element "md:Extensions"
|
259
|
-
unless settings.hash_aggregatore['soggetto_aggregato']['vat_number'].blank?
|
260
|
-
vat_number_aggregato = extensions_aggregato.add_element "ciam:VATNumber"
|
261
|
-
vat_number_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['vat_number']
|
262
|
-
end
|
263
|
-
unless settings.hash_aggregatore['soggetto_aggregato']['ipa_code'].blank?
|
264
|
-
ipa_code_aggregato = extensions_aggregato.add_element "ciam:IPACode"
|
265
|
-
ipa_code_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['ipa_code']
|
266
|
-
end
|
267
|
-
unless settings.hash_aggregatore['soggetto_aggregato']['fiscal_code'].blank?
|
268
|
-
fiscal_code_aggregato = extensions_aggregato.add_element "ciam:FiscalCode"
|
269
|
-
fiscal_code_aggregato.text = settings.hash_aggregatore['soggetto_aggregato']['fiscal_code']
|
270
|
-
end
|
271
|
-
end
|
272
|
-
|
273
224
|
#meta_doc << REXML::XMLDecl.new(version='1.0', encoding='UTF-8')
|
274
225
|
meta_doc << REXML::XMLDecl.new("1.0", "UTF-8")
|
275
226
|
|
@@ -10,7 +10,7 @@ module Ciam
|
|
10
10
|
attr_accessor :name_identifier_value, :name_identifier_format
|
11
11
|
attr_accessor :sessionindex, :issuer, :destination_service_url, :authn_context, :requester_identificator
|
12
12
|
attr_accessor :single_logout_service_url, :single_logout_service_binding, :single_logout_destination
|
13
|
-
attr_accessor :skip_validation
|
13
|
+
attr_accessor :skip_validation
|
14
14
|
|
15
15
|
def initialize(config = {})
|
16
16
|
config.each do |k,v|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ciam-es
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
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-
|
11
|
+
date: 2020-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: canonix
|