spid-es 0.0.34 → 0.0.39

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: 7ed5dd9deffda781e9e126176bdd46717f782238f4c8687b00b1175ad30e07ab
4
- data.tar.gz: 52c1374518e92fbdc554a90097ec6153cbde8988a6b2e50cd0ade5d005730637
3
+ metadata.gz: a41cf6a90ed7da1e2bee69c9fd5b04ea5a7115da5e5b81064c25ea6c47eb45b6
4
+ data.tar.gz: e9dd7a96c37a66c5c7bda3f2b06d621a47485452c58643f207615f4738bf4c41
5
5
  SHA512:
6
- metadata.gz: d40b64c97bdba22bdb724f78cb516458aed2151295698cd29f2e1ea5c82496ece03f66505800292f4e818d47148e0c2b03191047624de067967b7a3fcfb42061
7
- data.tar.gz: 35cf2b17a7d6f36b11476df563309e64b5c93ea6d9145ffc31a697fdcea0256f06612323bf460ca2dfa3095ae44a7724f55bbd8d047d1ad3f44cd382d794fe7b
6
+ metadata.gz: 32f122352d3317bdb2c651c36687211dde1923f08d21ab740dfe6c0f343ae136831cacc87edc8ef879d89e2896f0238262d8956014f8975458b5257dd3837481
7
+ data.tar.gz: 911f7d0953ed2728660c3a53637e6eb3f3b71a17a2f102e22cf4839298bf6b912b26eefaf09076070079ed95b43183b830b890d65108d4ba26ef34cc429c2523
@@ -53,21 +53,21 @@ module Spid::Saml
53
53
  end
54
54
 
55
55
  unless @settings.issuer.blank?
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
56
+ issuer = root.add_element "saml:Issuer", { "xmlns:saml" => "urn:oasis:names:tc:SAML:2.0:assertion" }
57
+ #l'attributo NameQualifier deve essere presente, non rispetta saml...
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
 
@@ -84,7 +84,7 @@ module Spid::Saml
84
84
  # the IdP will choose default rules for authentication. (Shibboleth IdP)
85
85
  if @settings.authn_context != nil
86
86
  requested_context = root.add_element "saml2p:RequestedAuthnContext", {
87
- "Comparison" => "minimum"
87
+ "Comparison" => "exact"
88
88
  }
89
89
  context_class = []
90
90
  @settings.authn_context.each_with_index{ |context, index|
@@ -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.34'
5
+ s.version = '0.0.39'
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.34
4
+ version: 0.0.39
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-10-13 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