Skip to content

Commit 01424dd

Browse files
committed
testapp: key and cert should be read from config and missed https options
1 parent 5c8c6dc commit 01424dd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

xt/testapp/lib/Saml2Test.pm

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ get '/logout-soap' => sub {
128128
)->as_xml;
129129

130130
my $soap = Net::SAML2::Binding::SOAP->new(
131-
key => 'sign-nopw-cert.pem',
132-
cert => 'sign-nopw-cert.pem',
131+
key => config->{key},
132+
cert => config->{cert},
133133
url => $slo_url,
134134
idp_cert => $idp_cert,
135135
cacert => config->{cacert},
@@ -179,11 +179,13 @@ get '/consumer-artifact' => sub {
179179
$ua->ssl_opts( (verify_hostname => config->{ssl_verify_hostname}));
180180

181181
my $soap = Net::SAML2::Binding::SOAP->new(
182+
ua => $ua,
182183
url => $art_url,
183-
key => 'sign-private.pem',
184-
cert => 'sign-certonly.pem',
185-
idp_cert => $idp_cert
184+
key => config->{key},
185+
cert => config->{cert},
186+
idp_cert => $idp_cert,
186187
);
188+
187189
my $response = $soap->request($request);
188190

189191
if ($response) {

0 commit comments

Comments
 (0)