spid-es 0.0.42 → 0.0.43

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: 98963a0fb7909e5e96d105a61d7b3a0c10378b39617dbaadb0c5dfdf6ac8e044
4
- data.tar.gz: 293a46c2471be93d09a6265d28b053f2fce3271d0380ab3981d435f9268023f2
3
+ metadata.gz: eaf5a650af9277b2c8d6e155d7615b0bbf2a68ff496cc847e4994135908f28f0
4
+ data.tar.gz: 4a94569b9af662ed0ef5c741cef6b8da3d9a164105986e6e8dea0411843b319a
5
5
  SHA512:
6
- metadata.gz: 55da9133c1d43fa72384e17d612c86c81ee0cb88f536991a272285c11d2f4cca582ce346d7288055a73ab97ceaac37104e6aedababba781a60a2d4902d76d6d3
7
- data.tar.gz: 08569eb6ffca8f6fa3e34e31a0c2972fdd049e721ffc7774081c8d98b3283a0034f43ca9baa9da15fcbb38305eadbe68a6a1196f19003aedc4ab0de24c0835e5
6
+ metadata.gz: 37f5919ca120e1ad9ca46b6848aad7e5ee7fd58af5fdf974d28b44972ce267c0a4dd0f43c63ca53c9ba72d8169c12e64c7615d21b53c86bdbeddb9b77cdc53e1
7
+ data.tar.gz: 325d9c5bd0b521921014a1571e40b6ebb6f92b49c5ab528c186d61548eefefab7bbce6972d788844db909475b82a1b5972a344dcf620ae73a98e7529f3accb66
@@ -249,7 +249,7 @@ module Spid
249
249
  idp_metadata = Spid::Saml::Metadata.new(settings).get_idp_metadata
250
250
  end
251
251
  #verifico se sono stati scaricati i metadati dell'idp
252
- return false if validate_metadata_idp(soft) == false
252
+ return false if validate_metadata_idp(idp_metadata) == false
253
253
 
254
254
  #carico nei setting l'idp_entity_id
255
255
  entity_descriptor_element = REXML::XPath.first(idp_metadata,"/EntityDescriptor")
@@ -337,9 +337,12 @@ module Spid
337
337
 
338
338
 
339
339
  #validate presenza dei metadata per idp
340
- def validate_metadata_idp(soft=true)
341
- return (soft ? false : validation_error("Metadata idp non raggiungibile per #{settings.idp_entity_id}")) if document.blank?
342
- true
340
+ def validate_metadata_idp(metadata_idp)
341
+ if metadata_idp.blank?
342
+ validation_error("Metadata idp non raggiungibile per #{settings.idp_entity_id}")
343
+ else
344
+ return true
345
+ end
343
346
  end
344
347
 
345
348
  # Validates the SAML version (2.0)
@@ -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.42'
5
+ s.version = '0.0.43'
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spid-es
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.42
4
+ version: 0.0.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabiano Pavan