Skip to content

Commit 700e6ce

Browse files
authored
Merge pull request #175 from timlegge/master
testapp: miscellaneous changes
2 parents 87ab8f8 + b4c70d8 commit 700e6ce

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

xt/testapp/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ is_passive: 0
2222
sign_metadata: 1
2323
authnreq_signed: 1
2424
ssl_verify_hostname: 0
25+
acs_url_in_request: 1

xt/testapp/lib/Saml2Test.pm

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ sub get_login_post {
118118
my $sp = _sp();
119119

120120
my %params = (
121+
defined (config->{acs_url_in_request}) and (config->{acs_url_in_request} eq 1) ?
122+
(assertion_url => config->{url} . config->{acs_url_post}) : (),
121123
defined (config->{force_authn}) ? (force_authn => config->{force_authn}) : (),
122124
defined (config->{is_passive}) ? (is_passive => config->{is_passive}) : (),
123125
);
@@ -179,6 +181,8 @@ get '/login' => sub {
179181
my $sp = _sp();
180182

181183
my %params = (
184+
defined (config->{acs_url_in_request}) and (config->{acs_url_in_request} eq 1) ?
185+
(assertion_url => config->{url} . config->{acs_url_post}) : (),
182186
defined (config->{force_authn}) ? (force_authn => config->{force_authn}) : (),
183187
defined (config->{is_passive}) ? (is_passive => config->{is_passive}) : (),
184188
);
@@ -608,20 +612,14 @@ sub _sp {
608612
{
609613
Binding => BINDING_HTTP_REDIRECT,
610614
Location => config->{url} . config->{slo_url_redirect},
611-
isDefault => 'true',
612-
index => 1,
613615
},
614616
{
615617
Binding => BINDING_HTTP_POST,
616618
Location => config->{url} . config->{slo_url_post},
617-
isDefault => 'false',
618-
index => 2,
619619
},
620620
{
621621
Binding => BINDING_HTTP_ARTIFACT,
622622
Location => config->{url} . config->{slo_url_soap},
623-
isDefault => 'false',
624-
index => 3,
625623
}],
626624
assertion_consumer_service => [
627625
{

0 commit comments

Comments
 (0)