Skip to content

Commit

Permalink
testapp: use SSL_verify_mode to disable verification via config
Browse files Browse the repository at this point in the history
  • Loading branch information
timlegge committed Feb 26, 2024
1 parent 7a0f526 commit 7a7e167
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions xt/testapp/lib/Saml2Test.pm
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ get '/logout-soap' => sub {
my $ua = LWP::UserAgent->new;

require LWP::Protocol::https;
$ua->ssl_opts( (verify_hostname => config->{ssl_verify_hostname}));
$ua->ssl_opts( (
SSL_verify_mode => config->{ssl_verify_hostname},
verify_hostname => config->{ssl_verify_hostname},
));

my $soap = Net::SAML2::Binding::SOAP->new(
ua => $ua,
Expand Down Expand Up @@ -428,7 +431,10 @@ any '/consumer-artifact' => sub {
my $ua = LWP::UserAgent->new;

require LWP::Protocol::https;
$ua->ssl_opts( (verify_hostname => config->{ssl_verify_hostname}));
$ua->ssl_opts( (
SSL_verify_mode => config->{ssl_verify_hostname},
verify_hostname => config->{ssl_verify_hostname},
));

my $soap = Net::SAML2::Binding::SOAP->new(
ua => $ua,
Expand Down Expand Up @@ -555,7 +561,10 @@ any '/sls-consumer-artifact' => sub {
my $ua = LWP::UserAgent->new;

require LWP::Protocol::https;
$ua->ssl_opts( (verify_hostname => config->{ssl_verify_hostname}));
$ua->ssl_opts( (
SSL_verify_mode => config->{ssl_verify_hostname},
verify_hostname => config->{ssl_verify_hostname},
));

my $soap = Net::SAML2::Binding::SOAP->new(
ua => $ua,
Expand Down

0 comments on commit 7a7e167

Please sign in to comment.