File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,11 @@ get '/logout-redirect' => sub {
4747 my $idp = _idp();
4848 my $sp = _sp();
4949
50+ if ( ! defined $idp -> slo_url(' urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect' ) ) {
51+ redirect " /" , 302;
52+ return ; # "Redirected\n";
53+ }
54+
5055 my $logoutreq = $sp -> logout_request(
5156 $idp -> slo_url(' urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect' ),
5257 params-> {nameid },
@@ -64,6 +69,12 @@ get '/logout-redirect' => sub {
6469get ' /logout-soap' => sub {
6570 my $idp = _idp();
6671 my $slo_url = $idp -> slo_url(' urn:oasis:names:tc:SAML:2.0:bindings:SOAP' );
72+
73+ if ( ! defined $slo_url ) {
74+ redirect " /" , 302;
75+ return " Redirected\n " ;
76+ }
77+
6778 my $idp_cert = $idp -> cert(' signing' );
6879
6980 my $sp = _sp();
You can’t perform that action at this time.
0 commit comments