From 64828ac8f5f6a6b6c3425b1bb598dcedc1e825a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Tue, 13 Sep 2022 14:57:42 +0200 Subject: [PATCH] Changes: - 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? --- saml/saml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/saml/saml.php b/saml/saml.php index 601a5d69..3eb52192 100644 --- a/saml/saml.php +++ b/saml/saml.php @@ -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()