spid-es 0.0.21 → 0.0.22

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 757c456ca20b577890aade7bd61730625c91afe3
4
- data.tar.gz: f56e0175f161d092dac32e0ee0a202c5e90f6179
2
+ SHA256:
3
+ metadata.gz: 244667e7dd811bf49843a3db7a7921b9ce0b7353878c5d76927a1ed10bdcb241
4
+ data.tar.gz: 72f4366b04da1269c97c38ea0d2926529647b2d4662016bc523cb632369b5f20
5
5
  SHA512:
6
- metadata.gz: 96713f7825b8786a881ee156682efde3eac3d2be870dbfa18715ec9617f12f95b7d7ef9d4e10fcdb2ab0214b0fceced0c71eab0b761281869eaa91f40532dc30
7
- data.tar.gz: 6d2929906a4191948e165de95c5bbdc6b52db1d40ed92b70a963f10a7f571dce6d3c2148e8d789fdecf99dc3979135e469264de991afa816e6871f570bc3721c
6
+ metadata.gz: '0954a0cde4c39b3bba87502731981d075d036344899d2ecc7fd0dfec2588d1839201d46101db098df950cb3fa3729605831e42d28b16233054d1b33784f397cf'
7
+ data.tar.gz: 8b56bd6fe0010da58eff3d0094dfe7efdc3b645a14128ba8d9ff67c0246d2fa7e7a9a2b62e492539aa58441f579b6685dfd065945b28a9b9b9d02e3a54709811
@@ -119,6 +119,18 @@ module Spid
119
119
  }
120
120
  end
121
121
 
122
+ #Logout dei servizi esterni
123
+ unless settings.hash_assertion_consumer.blank?
124
+ settings.hash_assertion_consumer.each_pair{ |index, hash_service|
125
+ unless hash_service['logout'].blank?
126
+ sp_sso.add_element "md:SingleLogoutService", {
127
+ "Binding" => hash_service['logout']['binding'] || "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST",
128
+ "Location" => hash_service['logout']['location']
129
+ }
130
+ end
131
+ }
132
+ end
133
+
122
134
  name_identifier_formats = settings.name_identifier_format
123
135
  if name_identifier_formats != nil
124
136
  name_id = []
@@ -165,11 +177,27 @@ module Spid
165
177
  "xml:lang" => "it"
166
178
  }
167
179
  service_name.text = hash_service['testo']
168
- hash_service['array_campi'].each_with_index{ |attribute, index|
169
- attr_cons_service.add_element "md:RequestedAttribute", {
170
- "Name" => attribute
180
+ unless hash_service['description'].blank?
181
+ service_description = attr_cons_service.add_element "md:ServiceDescription", {
182
+ "xml:lang" => "it"
171
183
  }
172
- }
184
+ service_description.text = hash_service['description']
185
+ end
186
+
187
+ if hash_service['array_campi'].is_a?(Array)
188
+ hash_service['array_campi'].each_with_index{ |attribute, index|
189
+ attr_cons_service.add_element "md:RequestedAttribute", {
190
+ "Name" => attribute
191
+ }
192
+ }
193
+ else #hash
194
+ hash_service['array_campi'].each_pair{ |attribute, name_format|
195
+ attr_cons_service.add_element "md:RequestedAttribute", {
196
+ "Name" => attribute,
197
+ "NameFormat" => name_format
198
+ }
199
+ }
200
+ end
173
201
  }
174
202
 
175
203
 
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.21'
5
+ s.version = '0.0.22'
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.21
4
+ version: 0.0.22
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-25 00:00:00.000000000 Z
11
+ date: 2020-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: canonix
@@ -73,7 +73,6 @@ extensions: []
73
73
  extra_rdoc_files: []
74
74
  files:
75
75
  - ".document"
76
- - ".travis.yml"
77
76
  - Gemfile
78
77
  - LICENSE
79
78
  - README.md
@@ -141,8 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
140
  - !ruby/object:Gem::Version
142
141
  version: '0'
143
142
  requirements: []
144
- rubyforge_project:
145
- rubygems_version: 2.2.2
143
+ rubygems_version: 3.0.6
146
144
  signing_key:
147
145
  specification_version: 4
148
146
  summary: SAML Ruby Tookit Spid
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.8.7
4
- - 1.9.3
5
- - ree