ruby-saml 0.8.12
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ruby-saml might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.gitignore +12 -0
- data/.travis.yml +11 -0
- data/Gemfile +37 -0
- data/LICENSE +19 -0
- data/README.md +160 -0
- data/Rakefile +27 -0
- data/changelog.md +24 -0
- data/lib/onelogin/ruby-saml/attributes.rb +147 -0
- data/lib/onelogin/ruby-saml/authrequest.rb +168 -0
- data/lib/onelogin/ruby-saml/logging.rb +26 -0
- data/lib/onelogin/ruby-saml/logoutrequest.rb +161 -0
- data/lib/onelogin/ruby-saml/logoutresponse.rb +153 -0
- data/lib/onelogin/ruby-saml/metadata.rb +66 -0
- data/lib/onelogin/ruby-saml/response.rb +426 -0
- data/lib/onelogin/ruby-saml/setting_error.rb +6 -0
- data/lib/onelogin/ruby-saml/settings.rb +166 -0
- data/lib/onelogin/ruby-saml/slo_logoutresponse.rb +158 -0
- data/lib/onelogin/ruby-saml/utils.rb +119 -0
- data/lib/onelogin/ruby-saml/validation_error.rb +7 -0
- data/lib/onelogin/ruby-saml/version.rb +5 -0
- data/lib/ruby-saml.rb +12 -0
- data/lib/schemas/saml20assertion_schema.xsd +283 -0
- data/lib/schemas/saml20protocol_schema.xsd +302 -0
- data/lib/schemas/xenc_schema.xsd +146 -0
- data/lib/schemas/xmldsig_schema.xsd +318 -0
- data/lib/xml_security.rb +292 -0
- data/ruby-saml.gemspec +28 -0
- data/test/certificates/certificate1 +12 -0
- data/test/certificates/r1_certificate2_base64 +1 -0
- data/test/certificates/ruby-saml.crt +14 -0
- data/test/certificates/ruby-saml.key +15 -0
- data/test/logoutrequest_test.rb +244 -0
- data/test/logoutresponse_test.rb +112 -0
- data/test/request_test.rb +229 -0
- data/test/response_test.rb +475 -0
- data/test/responses/adfs_response_sha1.xml +46 -0
- data/test/responses/adfs_response_sha256.xml +46 -0
- data/test/responses/adfs_response_sha384.xml +46 -0
- data/test/responses/adfs_response_sha512.xml +46 -0
- data/test/responses/encrypted_new_attack.xml.base64 +1 -0
- data/test/responses/logoutresponse_fixtures.rb +67 -0
- data/test/responses/no_signature_ns.xml +48 -0
- data/test/responses/open_saml_response.xml +56 -0
- data/test/responses/r1_response6.xml.base64 +1 -0
- data/test/responses/response1.xml.base64 +1 -0
- data/test/responses/response2.xml.base64 +79 -0
- data/test/responses/response3.xml.base64 +66 -0
- data/test/responses/response4.xml.base64 +93 -0
- data/test/responses/response5.xml.base64 +102 -0
- data/test/responses/response_eval.xml +7 -0
- data/test/responses/response_node_text_attack.xml.base64 +1 -0
- data/test/responses/response_with_ampersands.xml +139 -0
- data/test/responses/response_with_ampersands.xml.base64 +93 -0
- data/test/responses/response_with_concealed_signed_assertion.xml +51 -0
- data/test/responses/response_with_doubled_signed_assertion.xml +49 -0
- data/test/responses/response_with_multiple_attribute_statements.xml +72 -0
- data/test/responses/response_with_multiple_attribute_values.xml +67 -0
- data/test/responses/response_wrapped.xml.base64 +150 -0
- data/test/responses/simple_saml_php.xml +71 -0
- data/test/responses/starfield_response.xml.base64 +1 -0
- data/test/responses/valid_response.xml.base64 +1 -0
- data/test/responses/wrapped_response_2.xml.base64 +150 -0
- data/test/settings_test.rb +47 -0
- data/test/slo_logoutresponse_test.rb +226 -0
- data/test/test_helper.rb +155 -0
- data/test/utils_test.rb +41 -0
- data/test/xml_security_test.rb +158 -0
- metadata +178 -0
@@ -0,0 +1 @@
|
|
1
|
+
PHNhbWxwOlJlc3BvbnNlIElEPSJCZWViMzkyYjc1Ny02ZGM3LTRlYjktYmI1Yy03NmU1MTFmZDZiZWIiIElzc3VlSW5zdGFudD0iMjAxMi0xMS0yOFQxODoxMzo0NVoiIFZlcnNpb249IjIuMCIgeG1sbnM9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDphc3NlcnRpb24iIHhtbG5zOnNhbWxwPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6cHJvdG9jb2wiIHhtbG5zOnhl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NzPg0KICAgIDwvbWQ6Q29udGFjdFBlcnNvbj4NCiAgPC9tZDpFbnRpdHlEZXNj
|
150
|
+
cmlwdG9yPg0KPC9zYW1scDpSZXNwb25zZT4=
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "test_helper"))
|
2
|
+
|
3
|
+
class SettingsTest < Minitest::Test
|
4
|
+
|
5
|
+
describe "Settings" do
|
6
|
+
before do
|
7
|
+
@settings = OneLogin::RubySaml::Settings.new
|
8
|
+
end
|
9
|
+
it "should provide getters and settings" do
|
10
|
+
accessors = [
|
11
|
+
:assertion_consumer_service_url, :issuer, :sp_entity_id, :sp_name_qualifier,
|
12
|
+
:idp_sso_target_url, :idp_cert_fingerprint, :name_identifier_format,
|
13
|
+
:idp_slo_target_url, :name_identifier_value, :name_identifier_value_requested,
|
14
|
+
:sessionindex, :assertion_consumer_logout_service_url,
|
15
|
+
:passive, :force_authn, :protocol_binding, :single_logout_service_url, :single_logout_service_binding
|
16
|
+
]
|
17
|
+
|
18
|
+
accessors.each do |accessor|
|
19
|
+
value = Kernel.rand
|
20
|
+
@settings.send("#{accessor}=".to_sym, value)
|
21
|
+
assert_equal value, @settings.send(accessor)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
it "create settings from hash" do
|
26
|
+
|
27
|
+
config = {
|
28
|
+
:assertion_consumer_service_url => "http://app.muda.no/sso",
|
29
|
+
:issuer => "http://muda.no",
|
30
|
+
:sp_name_qualifier => "http://sso.muda.no",
|
31
|
+
:idp_sso_target_url => "http://sso.muda.no/sso",
|
32
|
+
:idp_slo_target_url => "http://sso.muda.no/slo",
|
33
|
+
:idp_cert_fingerprint => "00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00",
|
34
|
+
:name_identifier_format => "urn:oasis:names:tc:SAML:2.0:nameid-format:transient",
|
35
|
+
:passive => true,
|
36
|
+
:protocol_binding => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST'
|
37
|
+
}
|
38
|
+
@settings = OneLogin::RubySaml::Settings.new(config)
|
39
|
+
|
40
|
+
config.each do |k,v|
|
41
|
+
assert_equal v, @settings.send(k)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,226 @@
|
|
1
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "test_helper"))
|
2
|
+
|
3
|
+
class SloLogoutresponseTest < Minitest::Test
|
4
|
+
|
5
|
+
describe "SloLogoutresponse" do
|
6
|
+
|
7
|
+
let(:settings) { OneLogin::RubySaml::Settings.new }
|
8
|
+
|
9
|
+
before do
|
10
|
+
settings.idp_slo_target_url = "http://unauth.com/logout"
|
11
|
+
settings.name_identifier_value = "f00f00"
|
12
|
+
settings.compress_request = true
|
13
|
+
settings.certificate = ruby_saml_cert_text
|
14
|
+
settings.private_key = ruby_saml_key_text
|
15
|
+
end
|
16
|
+
|
17
|
+
it "create the deflated SAMLResponse URL parameter" do
|
18
|
+
unauth_url = OneLogin::RubySaml::SloLogoutresponse.new.create(settings)
|
19
|
+
assert_match /^http:\/\/unauth\.com\/logout\?SAMLResponse=/, unauth_url
|
20
|
+
|
21
|
+
inflated = decode_saml_response_payload(unauth_url)
|
22
|
+
assert_match /^<samlp:LogoutResponse/, inflated
|
23
|
+
end
|
24
|
+
|
25
|
+
it "support additional params" do
|
26
|
+
unauth_url = OneLogin::RubySaml::SloLogoutresponse.new.create(settings, nil, nil, { :hello => nil })
|
27
|
+
assert_match /&hello=$/, unauth_url
|
28
|
+
|
29
|
+
unauth_url = OneLogin::RubySaml::SloLogoutresponse.new.create(settings, nil, nil, { :foo => "bar" })
|
30
|
+
assert_match /&foo=bar$/, unauth_url
|
31
|
+
|
32
|
+
unauth_url = OneLogin::RubySaml::SloLogoutresponse.new.create(settings, nil, nil, { :RelayState => "http://idp.example.com" })
|
33
|
+
assert_match /&RelayState=http%3A%2F%2Fidp.example.com$/, unauth_url
|
34
|
+
end
|
35
|
+
|
36
|
+
it "RelayState cases" do
|
37
|
+
unauth_url = OneLogin::RubySaml::SloLogoutresponse.new.create(settings, nil, nil, { :RelayState => nil })
|
38
|
+
assert !unauth_url.include?('RelayState')
|
39
|
+
|
40
|
+
unauth_url = OneLogin::RubySaml::SloLogoutresponse.new.create(settings, nil, nil, { :RelayState => "http://example.com" })
|
41
|
+
assert unauth_url.include?('&RelayState=http%3A%2F%2Fexample.com')
|
42
|
+
|
43
|
+
unauth_url = OneLogin::RubySaml::SloLogoutresponse.new.create(settings, nil, nil, { 'RelayState' => nil })
|
44
|
+
assert !unauth_url.include?('RelayState')
|
45
|
+
|
46
|
+
unauth_url = OneLogin::RubySaml::SloLogoutresponse.new.create(settings, nil, nil, { 'RelayState' => "http://example.com" })
|
47
|
+
assert unauth_url.include?('&RelayState=http%3A%2F%2Fexample.com')
|
48
|
+
end
|
49
|
+
|
50
|
+
it "set InResponseTo to the ID from the logout request" do
|
51
|
+
unauth_url = OneLogin::RubySaml::SloLogoutresponse.new.create(settings, '_c0348950-935b-0131-1060-782bcb56fcaa')
|
52
|
+
|
53
|
+
inflated = decode_saml_response_payload(unauth_url)
|
54
|
+
assert_match /InResponseTo='_c0348950-935b-0131-1060-782bcb56fcaa'/, inflated
|
55
|
+
end
|
56
|
+
|
57
|
+
it "set a custom successful logout message on the response" do
|
58
|
+
unauth_url = OneLogin::RubySaml::SloLogoutresponse.new.create(settings, nil, "Custom Logout Message")
|
59
|
+
|
60
|
+
inflated = decode_saml_response_payload(unauth_url)
|
61
|
+
assert_match /<samlp:StatusMessage>Custom Logout Message<\/samlp:StatusMessage>/, inflated
|
62
|
+
end
|
63
|
+
|
64
|
+
describe "when the settings indicate to sign (embedded) logout response" do
|
65
|
+
|
66
|
+
before do
|
67
|
+
settings.compress_response = false
|
68
|
+
settings.security[:logout_responses_signed] = true
|
69
|
+
settings.security[:embed_sign] = true
|
70
|
+
end
|
71
|
+
|
72
|
+
it "doesn't sign through create_xml_document" do
|
73
|
+
unauth_res = OneLogin::RubySaml::SloLogoutresponse.new
|
74
|
+
inflated = unauth_res.create_xml_document(settings).to_s
|
75
|
+
|
76
|
+
refute_match %r[<ds:SignatureValue>([a-zA-Z0-9/+=]+)</ds:SignatureValue>], inflated
|
77
|
+
refute_match %r[<ds:SignatureMethod Algorithm='http://www.w3.org/2000/09/xmldsig#rsa-sha1'/>], inflated
|
78
|
+
refute_match %r[<ds:DigestMethod Algorithm='http://www.w3.org/2000/09/xmldsig#sha1'/>], inflated
|
79
|
+
end
|
80
|
+
|
81
|
+
it "sign unsigned request" do
|
82
|
+
unauth_res = OneLogin::RubySaml::SloLogoutresponse.new
|
83
|
+
unauth_res_doc = unauth_res.create_xml_document(settings)
|
84
|
+
inflated = unauth_res_doc.to_s
|
85
|
+
|
86
|
+
refute_match %r[<ds:SignatureValue>([a-zA-Z0-9/+=]+)</ds:SignatureValue>], inflated
|
87
|
+
refute_match %r[<ds:SignatureMethod Algorithm='http://www.w3.org/2000/09/xmldsig#rsa-sha1'/>], inflated
|
88
|
+
refute_match %r[<ds:DigestMethod Algorithm='http://www.w3.org/2000/09/xmldsig#sha1'/>], inflated
|
89
|
+
|
90
|
+
inflated = unauth_res.sign_document(unauth_res_doc, settings).to_s
|
91
|
+
|
92
|
+
assert_match %r[<ds:SignatureValue>([a-zA-Z0-9/+=]+)</ds:SignatureValue>], inflated
|
93
|
+
assert_match %r[<ds:SignatureMethod Algorithm='http://www.w3.org/2000/09/xmldsig#rsa-sha1'/>], inflated
|
94
|
+
assert_match %r[<ds:DigestMethod Algorithm='http://www.w3.org/2000/09/xmldsig#sha1'/>], inflated
|
95
|
+
end
|
96
|
+
|
97
|
+
it "signs through create_logout_response_xml_doc" do
|
98
|
+
unauth_res = OneLogin::RubySaml::SloLogoutresponse.new
|
99
|
+
inflated = unauth_res.create_logout_response_xml_doc(settings).to_s
|
100
|
+
|
101
|
+
assert_match %r[<ds:SignatureValue>([a-zA-Z0-9/+=]+)</ds:SignatureValue>], inflated
|
102
|
+
assert_match %r[<ds:SignatureMethod Algorithm='http://www.w3.org/2000/09/xmldsig#rsa-sha1'/>], inflated
|
103
|
+
assert_match %r[<ds:DigestMethod Algorithm='http://www.w3.org/2000/09/xmldsig#sha1'/>], inflated
|
104
|
+
end
|
105
|
+
|
106
|
+
it "create a signed logout response" do
|
107
|
+
params = OneLogin::RubySaml::SloLogoutresponse.new.create_params(settings, nil, "Custom Logout Message")
|
108
|
+
|
109
|
+
response_xml = Base64.decode64(params["SAMLResponse"])
|
110
|
+
assert_match %r[<ds:SignatureValue>([a-zA-Z0-9/+=]+)</ds:SignatureValue>], response_xml
|
111
|
+
assert_match /<ds:SignatureMethod Algorithm='http:\/\/www.w3.org\/2000\/09\/xmldsig#rsa-sha1'\/>/, response_xml
|
112
|
+
assert_match /<ds:DigestMethod Algorithm='http:\/\/www.w3.org\/2000\/09\/xmldsig#sha1'\/>/, response_xml
|
113
|
+
end
|
114
|
+
|
115
|
+
it "create a signed logout response with 256 digest and signature methods" do
|
116
|
+
settings.security[:signature_method] = XMLSecurity::Document::RSA_SHA256
|
117
|
+
settings.security[:digest_method] = XMLSecurity::Document::SHA256
|
118
|
+
|
119
|
+
params = OneLogin::RubySaml::SloLogoutresponse.new.create_params(settings, nil, "Custom Logout Message")
|
120
|
+
|
121
|
+
response_xml = Base64.decode64(params["SAMLResponse"])
|
122
|
+
assert_match %r[<ds:SignatureValue>([a-zA-Z0-9/+=]+)</ds:SignatureValue>], response_xml
|
123
|
+
assert_match /<ds:SignatureMethod Algorithm='http:\/\/www.w3.org\/2001\/04\/xmldsig-more#rsa-sha256'\/>/, response_xml
|
124
|
+
assert_match /<ds:DigestMethod Algorithm='http:\/\/www.w3.org\/2001\/04\/xmlenc#sha256'\/>/, response_xml
|
125
|
+
end
|
126
|
+
|
127
|
+
it "create a signed logout response with 512 digest and signature method RSA_SHA384" do
|
128
|
+
settings.security[:signature_method] = XMLSecurity::Document::RSA_SHA384
|
129
|
+
settings.security[:digest_method] = XMLSecurity::Document::SHA512
|
130
|
+
|
131
|
+
params = OneLogin::RubySaml::SloLogoutresponse.new.create_params(settings, nil, "Custom Logout Message")
|
132
|
+
|
133
|
+
response_xml = Base64.decode64(params["SAMLResponse"])
|
134
|
+
assert_match %r[<ds:SignatureValue>([a-zA-Z0-9/+=]+)</ds:SignatureValue>], response_xml
|
135
|
+
assert_match /<ds:SignatureMethod Algorithm='http:\/\/www.w3.org\/2001\/04\/xmldsig-more#rsa-sha384'\/>/, response_xml
|
136
|
+
assert_match /<ds:DigestMethod Algorithm='http:\/\/www.w3.org\/2001\/04\/xmlenc#sha512'\/>/, response_xml
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
describe "#create_params when the settings indicate to sign the logout response" do
|
141
|
+
|
142
|
+
let(:cert) { OpenSSL::X509::Certificate.new(ruby_saml_cert_text) }
|
143
|
+
|
144
|
+
before do
|
145
|
+
settings.compress_response = false
|
146
|
+
settings.security[:logout_responses_signed] = true
|
147
|
+
settings.security[:embed_sign] = false
|
148
|
+
end
|
149
|
+
|
150
|
+
it "create a signature parameter with RSA_SHA1 and validate it" do
|
151
|
+
settings.security[:signature_method] = XMLSecurity::Document::RSA_SHA1
|
152
|
+
|
153
|
+
params = OneLogin::RubySaml::SloLogoutresponse.new.create_params(settings, nil, "Custom Logout Message", :RelayState => 'http://example.com')
|
154
|
+
assert params['SAMLResponse']
|
155
|
+
assert params[:RelayState]
|
156
|
+
assert params['Signature']
|
157
|
+
assert_equal params['SigAlg'], XMLSecurity::Document::RSA_SHA1
|
158
|
+
|
159
|
+
query_string = "SAMLResponse=#{CGI.escape(params['SAMLResponse'])}"
|
160
|
+
query_string << "&RelayState=#{CGI.escape(params[:RelayState])}"
|
161
|
+
query_string << "&SigAlg=#{CGI.escape(params['SigAlg'])}"
|
162
|
+
|
163
|
+
signature_algorithm = XMLSecurity::BaseDocument.new.algorithm(params['SigAlg'])
|
164
|
+
assert_equal signature_algorithm, OpenSSL::Digest::SHA1
|
165
|
+
assert cert.public_key.verify(signature_algorithm.new, Base64.decode64(params['Signature']), query_string)
|
166
|
+
end
|
167
|
+
|
168
|
+
it "create a signature parameter with RSA_SHA256 /SHA256 and validate it" do
|
169
|
+
settings.security[:signature_method] = XMLSecurity::Document::RSA_SHA256
|
170
|
+
|
171
|
+
params = OneLogin::RubySaml::SloLogoutresponse.new.create_params(settings, nil, "Custom Logout Message", :RelayState => 'http://example.com')
|
172
|
+
assert params['SAMLResponse']
|
173
|
+
assert params[:RelayState]
|
174
|
+
assert params['Signature']
|
175
|
+
|
176
|
+
assert_equal params['SigAlg'], XMLSecurity::Document::RSA_SHA256
|
177
|
+
|
178
|
+
query_string = "SAMLResponse=#{CGI.escape(params['SAMLResponse'])}"
|
179
|
+
query_string << "&RelayState=#{CGI.escape(params[:RelayState])}"
|
180
|
+
query_string << "&SigAlg=#{CGI.escape(params['SigAlg'])}"
|
181
|
+
|
182
|
+
signature_algorithm = XMLSecurity::BaseDocument.new.algorithm(params['SigAlg'])
|
183
|
+
assert_equal signature_algorithm, OpenSSL::Digest::SHA256
|
184
|
+
assert cert.public_key.verify(signature_algorithm.new, Base64.decode64(params['Signature']), query_string)
|
185
|
+
end
|
186
|
+
|
187
|
+
it "create a signature parameter with RSA_SHA384 / SHA384 and validate it" do
|
188
|
+
settings.security[:signature_method] = XMLSecurity::Document::RSA_SHA384
|
189
|
+
|
190
|
+
params = OneLogin::RubySaml::SloLogoutresponse.new.create_params(settings, nil, "Custom Logout Message", :RelayState => 'http://example.com')
|
191
|
+
assert params['SAMLResponse']
|
192
|
+
assert params[:RelayState]
|
193
|
+
assert params['Signature']
|
194
|
+
|
195
|
+
assert_equal params['SigAlg'], XMLSecurity::Document::RSA_SHA384
|
196
|
+
|
197
|
+
query_string = "SAMLResponse=#{CGI.escape(params['SAMLResponse'])}"
|
198
|
+
query_string << "&RelayState=#{CGI.escape(params[:RelayState])}"
|
199
|
+
query_string << "&SigAlg=#{CGI.escape(params['SigAlg'])}"
|
200
|
+
|
201
|
+
signature_algorithm = XMLSecurity::BaseDocument.new.algorithm(params['SigAlg'])
|
202
|
+
assert_equal signature_algorithm, OpenSSL::Digest::SHA384
|
203
|
+
assert cert.public_key.verify(signature_algorithm.new, Base64.decode64(params['Signature']), query_string)
|
204
|
+
end
|
205
|
+
|
206
|
+
it "create a signature parameter with RSA_SHA512 / SHA512 and validate it" do
|
207
|
+
settings.security[:signature_method] = XMLSecurity::Document::RSA_SHA512
|
208
|
+
|
209
|
+
params = OneLogin::RubySaml::SloLogoutresponse.new.create_params(settings, nil, "Custom Logout Message", :RelayState => 'http://example.com')
|
210
|
+
assert params['SAMLResponse']
|
211
|
+
assert params[:RelayState]
|
212
|
+
assert params['Signature']
|
213
|
+
|
214
|
+
assert_equal params['SigAlg'], XMLSecurity::Document::RSA_SHA512
|
215
|
+
|
216
|
+
query_string = "SAMLResponse=#{CGI.escape(params['SAMLResponse'])}"
|
217
|
+
query_string << "&RelayState=#{CGI.escape(params[:RelayState])}"
|
218
|
+
query_string << "&SigAlg=#{CGI.escape(params['SigAlg'])}"
|
219
|
+
|
220
|
+
signature_algorithm = XMLSecurity::BaseDocument.new.algorithm(params['SigAlg'])
|
221
|
+
assert_equal signature_algorithm, OpenSSL::Digest::SHA512
|
222
|
+
assert cert.public_key.verify(signature_algorithm.new, Base64.decode64(params['Signature']), query_string)
|
223
|
+
end
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,155 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'minitest/autorun'
|
3
|
+
require 'shoulda'
|
4
|
+
require 'mocha/setup'
|
5
|
+
require 'timecop'
|
6
|
+
|
7
|
+
if RUBY_VERSION < '1.9'
|
8
|
+
require 'uuid'
|
9
|
+
else
|
10
|
+
require 'securerandom'
|
11
|
+
end
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
+
require 'ruby-saml'
|
16
|
+
|
17
|
+
ENV["ruby-saml/testing"] = "1"
|
18
|
+
|
19
|
+
class Minitest::Test
|
20
|
+
def fixture(document, base64 = true)
|
21
|
+
response = Dir.glob(File.join(File.dirname(__FILE__), "responses", "#{document}*")).first
|
22
|
+
if base64 && response =~ /\.xml$/
|
23
|
+
Base64.encode64(File.read(response))
|
24
|
+
else
|
25
|
+
File.read(response)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def random_id
|
30
|
+
RUBY_VERSION < '1.9' ? "_#{UUID.new.generate}" : "_#{SecureRandom.uuid}"
|
31
|
+
end
|
32
|
+
|
33
|
+
def read_response(response)
|
34
|
+
File.read(File.join(File.dirname(__FILE__), "responses", response))
|
35
|
+
end
|
36
|
+
|
37
|
+
def read_certificate(certificate)
|
38
|
+
File.read(File.join(File.dirname(__FILE__), "certificates", certificate))
|
39
|
+
end
|
40
|
+
|
41
|
+
def response_document
|
42
|
+
@response_document ||= read_response('response1.xml.base64')
|
43
|
+
end
|
44
|
+
|
45
|
+
def response_document_2
|
46
|
+
@response_document2 ||= read_response('response2.xml.base64')
|
47
|
+
end
|
48
|
+
|
49
|
+
def response_document_3
|
50
|
+
@response_document3 ||= read_response('response3.xml.base64')
|
51
|
+
end
|
52
|
+
|
53
|
+
def response_document_4
|
54
|
+
@response_document4 ||= read_response('response4.xml.base64')
|
55
|
+
end
|
56
|
+
|
57
|
+
def response_document_5
|
58
|
+
@response_document5 ||= read_response('response5.xml.base64')
|
59
|
+
end
|
60
|
+
|
61
|
+
def r1_response_document_6
|
62
|
+
@response_document6 ||= read_response('r1_response6.xml.base64')
|
63
|
+
end
|
64
|
+
|
65
|
+
def ampersands_response
|
66
|
+
@ampersands_resposne ||= read_response('response_with_ampersands.xml.base64')
|
67
|
+
end
|
68
|
+
|
69
|
+
def response_document_6
|
70
|
+
doc = Base64.decode64(response_document)
|
71
|
+
doc.gsub!(/NotBefore=\"(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z\"/, "NotBefore=\"#{(Time.now-300).getutc.strftime("%Y-%m-%dT%XZ")}\"")
|
72
|
+
doc.gsub!(/NotOnOrAfter=\"(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z\"/, "NotOnOrAfter=\"#{(Time.now+300).getutc.strftime("%Y-%m-%dT%XZ")}\"")
|
73
|
+
Base64.encode64(doc)
|
74
|
+
end
|
75
|
+
|
76
|
+
def response_document_wrapped
|
77
|
+
@response_document_wrapped ||= read_response("response_wrapped.xml.base64")
|
78
|
+
end
|
79
|
+
|
80
|
+
def response_document_valid_signed
|
81
|
+
response_document_valid_signed ||= File.read(File.join(File.dirname(__FILE__), 'responses', 'valid_response.xml.base64'))
|
82
|
+
end
|
83
|
+
|
84
|
+
def wrapped_response_2
|
85
|
+
@wrapped_response_2 ||= File.read(File.join(File.dirname(__FILE__), 'responses', 'wrapped_response_2.xml.base64'))
|
86
|
+
end
|
87
|
+
|
88
|
+
def signature_fingerprint_1
|
89
|
+
@signature_fingerprint1 ||= "C5:19:85:D9:47:F1:BE:57:08:20:25:05:08:46:EB:27:F6:CA:B7:83"
|
90
|
+
end
|
91
|
+
|
92
|
+
def signature_fingerprint_valid_res
|
93
|
+
@signature_fingerprint1 ||= "4b68c453c7d994aad9025c99d5efcf566287fe8d"
|
94
|
+
end
|
95
|
+
|
96
|
+
def signature_1
|
97
|
+
@signature1 ||= read_certificate('certificate1')
|
98
|
+
end
|
99
|
+
|
100
|
+
def r1_signature_2
|
101
|
+
@signature2 ||= read_certificate('r1_certificate2_base64')
|
102
|
+
end
|
103
|
+
|
104
|
+
def valid_cert
|
105
|
+
@signature_valid_cert ||= read_certificate('ruby-saml.crt')
|
106
|
+
end
|
107
|
+
|
108
|
+
def valid_key
|
109
|
+
@signature_valid_cert ||= read_certificate('ruby-saml.key')
|
110
|
+
end
|
111
|
+
|
112
|
+
def response_with_multiple_attribute_statements
|
113
|
+
@response_with_multiple_attribute_statements = OneLogin::RubySaml::Response.new(fixture(:response_with_multiple_attribute_statements))
|
114
|
+
end
|
115
|
+
|
116
|
+
def response_multiple_attr_values
|
117
|
+
@response_multiple_attr_values = OneLogin::RubySaml::Response.new(fixture(:response_with_multiple_attribute_values))
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
def ruby_saml_cert_text
|
122
|
+
read_certificate("ruby-saml.crt")
|
123
|
+
end
|
124
|
+
|
125
|
+
def ruby_saml_key_text
|
126
|
+
read_certificate("ruby-saml.key")
|
127
|
+
end
|
128
|
+
|
129
|
+
def read_certificate(certificate)
|
130
|
+
File.read(File.join(File.dirname(__FILE__), "certificates", certificate))
|
131
|
+
end
|
132
|
+
|
133
|
+
def decode_saml_request_payload(unauth_url)
|
134
|
+
payload = CGI.unescape(unauth_url.split("SAMLRequest=").last)
|
135
|
+
decoded = Base64.decode64(payload)
|
136
|
+
|
137
|
+
zstream = Zlib::Inflate.new(-Zlib::MAX_WBITS)
|
138
|
+
inflated = zstream.inflate(decoded)
|
139
|
+
zstream.finish
|
140
|
+
zstream.close
|
141
|
+
inflated
|
142
|
+
end
|
143
|
+
|
144
|
+
# decodes a base64 encoded SAML response for use in SloLogoutresponse tests
|
145
|
+
#
|
146
|
+
def decode_saml_response_payload(unauth_url)
|
147
|
+
payload = CGI.unescape(unauth_url.split("SAMLResponse=").last)
|
148
|
+
decoded = Base64.decode64(payload)
|
149
|
+
|
150
|
+
zstream = Zlib::Inflate.new(-Zlib::MAX_WBITS)
|
151
|
+
inflated = zstream.inflate(decoded)
|
152
|
+
zstream.finish
|
153
|
+
zstream.close
|
154
|
+
inflated
|
155
|
+
end
|