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 +4 -4
- data/ciam-es.gemspec +1 -1
- data/lib/ciam/ruby-saml/logout_response.rb +9 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61fa7e58944e649c13d8c872011c0a430802cb41e2c5916ef6318d9cbcf79eee
|
4
|
+
data.tar.gz: bffd2ddb51a8a3a2b4b1c1846c737ec1b6ff481ee8e526e58521a805e78b1e4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49f4eee88f81279ffc7281b7d0e432111c4c828f83b3c10ca1c66e61a64c3ed9cd7fec22ae9d6d7896a6e4145c3d1b0e45f58144ba5b8ffb9ec4f4dd6d919251
|
7
|
+
data.tar.gz: 5c68801db14538ba766d5d0bf437c42c6ea5385ba529524604938f51646445879beeb2e689d09af178199728df5d684f67d9be13b1ebb976aec3486bcaf94df1
|
data/ciam-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 = 'ciam-es'
|
5
|
-
s.version = '0.0.
|
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
|
-
|
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
|