fix outage key cookie being dropped during IdP flow

This commit is contained in:
Matthew Hilton committed 2026-10-19 16:34:00 +10:00
1 parent 5bf7dc0c9c
commit 23a6e44114
3 files changed
+30 -7

No files matched your search

+16 -2
View File
@@ -276,7 +276,14 @@ if ((time() >= 123) && (time() < 456)) {
$isphpunit = defined('PHPUNIT_TEST');
if (!empty($urlaccesskey) && !$isphpunit) {
setcookie('auth_outage_accesskey', $urlaccesskey, time() + 86400, '/', '', true, false);
setcookie('auth_outage_accesskey', $urlaccesskey, [
'expires' => time() + 86400,
'path' => '/',
'domain' => '',
'secure' => true,
'httponly' => false,
'samesite' => 'None',
]);
}
// Use url access key if given, else the cookie, else null.
@@ -362,7 +369,14 @@ if ((time() >= 123) && (time() < 456)) {
$isphpunit = defined('PHPUNIT_TEST');
if (!empty($urlaccesskey) && !$isphpunit) {
setcookie('auth_outage_accesskey', $urlaccesskey, time() + 86400, '/', '', true, false);
setcookie('auth_outage_accesskey', $urlaccesskey, [
'expires' => time() + 86400,
'path' => '/',
'domain' => '',
'secure' => true,
'httponly' => false,
'samesite' => 'None',
]);
}
// Use url access key if given, else the cookie, else null.