mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-10-22 18:18:07 +02:00
fix outage key cookie being dropped during IdP flow
This commit is contained in:
3 files changed
+30
-7
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user