ciam-es 0.0.8 → 0.0.9

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: bb9b46bf824cdacb850c58b9738b9d721c867f581b408c31bb73c8825ffd12e6
4
- data.tar.gz: 4ce376174e42c4591a92b69492dc74d99a4bbac0bcf2f4e52ef8ba5dcc5f795e
3
+ metadata.gz: 61fa7e58944e649c13d8c872011c0a430802cb41e2c5916ef6318d9cbcf79eee
4
+ data.tar.gz: bffd2ddb51a8a3a2b4b1c1846c737ec1b6ff481ee8e526e58521a805e78b1e4f
5
5
  SHA512:
6
- metadata.gz: 9c97441c42eaeee5054c18d60d453dd9c484f33497974ff7bf8570efcfe638a3a1084529b486c837cbbef703f2f2ea6ffb9fbdd2c1225d6c2b98584b6be5eb57
7
- data.tar.gz: 2172dedd7b152474215633d2cdae4e7bf3f15bed9c8ac52ec4175bce16490104140a23c6d65560b96dbbcb563a2730b7d99ad5e9535eae64dad4981e957af9d1
6
+ metadata.gz: 49f4eee88f81279ffc7281b7d0e432111c4c828f83b3c10ca1c66e61a64c3ed9cd7fec22ae9d6d7896a6e4145c3d1b0e45f58144ba5b8ffb9ec4f4dd6d919251
7
+ data.tar.gz: 5c68801db14538ba766d5d0bf437c42c6ea5385ba529524604938f51646445879beeb2e689d09af178199728df5d684f67d9be13b1ebb976aec3486bcaf94df1
@@ -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.8'
5
+ s.version = '0.0.9'
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"]
@@ -53,18 +53,13 @@ module Ciam
53
53
  root.attributes['ID'] = uuid
54
54
  root.attributes['IssueInstant'] = time
55
55
  root.attributes['Version'] = "2.0"
56
+ root.attributes['Destination'] = @settings.single_logout_destination
56
57
  # Just convenient naming to accept both names as InResponseTo
57
58
  if opt[:transaction_id]
58
59
  root.attributes['InResponseTo'] = opt[:transaction_id]
59
60
  elsif opt[:in_response_to]
60
61
  root.attributes['InResponseTo'] = opt[:in_response_to]
61
62
  end
62
- if opt[:status]
63
- status = root.add_element "saml2p:Status"
64
- status_code = status.add_element "saml2p:StatusCode", {
65
- "Value" => opt[:status]
66
- }
67
- end
68
63
  if @settings && @settings.issuer
69
64
  issuer = root.add_element "saml:Issuer", {
70
65
  "xmlns:saml" => "urn:oasis:names:tc:SAML:2.0:assertion"
@@ -80,8 +75,15 @@ module Ciam
80
75
  if @settings.metadata_signed && @settings.sp_private_key && @settings.sp_cert
81
76
  private_key = @settings.get_sp_key
82
77
  response_doc.sign_document(private_key, cert)
83
- end
78
+ end
84
79
 
80
+ if opt[:status]
81
+ status = root.add_element "saml2p:Status"
82
+ status_code = status.add_element "saml2p:StatusCode", {
83
+ "Value" => opt[:status]
84
+ }
85
+ end
86
+
85
87
  Logging.debug "Created LogoutResponse:\n #{response_doc}"
86
88
 
87
89
  return response_doc.to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ciam-es
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabiano Pavan