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?
This commit is contained in:
parent
5f154c18a8
commit
64828ac8f5
|
@ -120,7 +120,7 @@ function saml_sso_initiate(App $a, array &$b)
|
||||||
$auth = new \OneLogin\Saml2\Auth(saml_settings());
|
$auth = new \OneLogin\Saml2\Auth(saml_settings());
|
||||||
$ssoBuiltUrl = $auth->login(null, [], false, false, true);
|
$ssoBuiltUrl = $auth->login(null, [], false, false, true);
|
||||||
$_SESSION['AuthNRequestID'] = $auth->getLastRequestID();
|
$_SESSION['AuthNRequestID'] = $auth->getLastRequestID();
|
||||||
System::externalRedirect($ssoBuiltUrl);
|
System::externalRedirect($ssoBuiltUrl, 302, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function saml_sso_reply(App $a)
|
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());
|
$auth = new \OneLogin\Saml2\Auth(saml_settings());
|
||||||
$sloBuiltUrl = $auth->logout();
|
$sloBuiltUrl = $auth->logout();
|
||||||
$_SESSION['LogoutRequestID'] = $auth->getLastRequestID();
|
$_SESSION['LogoutRequestID'] = $auth->getLastRequestID();
|
||||||
System::externalRedirect($sloBuiltUrl);
|
System::externalRedirect($sloBuiltUrl, 302, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function saml_slo_reply()
|
function saml_slo_reply()
|
||||||
|
|
Loading…
Reference in a new issue