lib/cie/ruby-saml/response.rb in cie-es-0.0.10 vs lib/cie/ruby-saml/response.rb in cie-es-0.0.11

- old
+ new

@@ -567,10 +567,11 @@ end node_auth_stat_context_class_ref = xpath_first_from_signed_assertion('/a:AuthnStatement/a:AuthnContext/a:AuthnContextClassRef') #Cieer.logger.error "\n\n node_auth_stat_context_class_ref #{node_auth_stat_context_class_ref.text}" - return soft ? false : validation_error("Errore su Asserzione: AuthnContextClassRef di AuthnContext su AuthnStatement vuoto o non L2") if node_auth_stat_context_class_ref.blank? || ( (node_auth_stat_context_class_ref.text != 'https://www.spid.gov.it/SpidL2') && (node_auth_stat_context_class_ref.text != 'https://www.spid.gov.it/SpidL3')) + #TOLTA VALIDAZIONE PER PERMETTERE ACCESSO TRAMITE CIE CON LIVELLI ANCHE 1 E 2 + #return soft ? false : validation_error("Errore su Asserzione: AuthnContextClassRef di AuthnContext su AuthnStatement vuoto o non L2") if node_auth_stat_context_class_ref.blank? || ( (node_auth_stat_context_class_ref.text != 'https://www.spid.gov.it/SpidL2') && (node_auth_stat_context_class_ref.text != 'https://www.spid.gov.it/SpidL3')) node_attr_stmt_attribute_value = xpath_first_from_signed_assertion("/a:AttributeStatement/a:Attribute/a:AttributeValue") #Elemento AttributeStatement presente, ma sottoelemento Attribute non specificato, caso 99 return soft ? false : validation_error("Errore su Asserzione: AttributeValue di Attribute su AttributeStatement vuoto") if node_attr_stmt_attribute_value.blank?