- added 3rd parameter `$proxy_headers` to add (default: not added)
  Pragma/Cache-Control headers
- But maybe there is a better one already in some composer package, that also
  supports more than just these 2 headers?
This commit is contained in:
Roland Häder 2022-09-13 14:57:42 +02:00
parent 5f154c18a8
commit 64828ac8f5
Signed by: roland
GPG key ID: C82EDE5DDFA0BA77

View file

@ -120,7 +120,7 @@ function saml_sso_initiate(App $a, array &$b)
$auth = new \OneLogin\Saml2\Auth(saml_settings());
$ssoBuiltUrl = $auth->login(null, [], false, false, true);
$_SESSION['AuthNRequestID'] = $auth->getLastRequestID();
System::externalRedirect($ssoBuiltUrl);
System::externalRedirect($ssoBuiltUrl, 302, true);
}
function saml_sso_reply(App $a)
@ -182,7 +182,7 @@ function saml_slo_initiate(App $a, array &$b)
$auth = new \OneLogin\Saml2\Auth(saml_settings());
$sloBuiltUrl = $auth->logout();
$_SESSION['LogoutRequestID'] = $auth->getLastRequestID();
System::externalRedirect($sloBuiltUrl);
System::externalRedirect($sloBuiltUrl, 302, true);
}
function saml_slo_reply()