moodle/auth/lti
Jake Dallimore a92f780b23
MDL-80835 auth_lti: add cookie helper facilitating CHIPS opt-in
To opt a cookie in to Chrome's 3rd party cookie partitioning solution,
CHIPS, the property 'Partitioned;' needs to be set. This adds a helper
class supporting this, for a given cookie(s).

Note also, PHP's native
cookie APIs (setcookie, etc) don't support this cookie property yet -
(https://github.com/php/php-src/issues/12646).

Since this class is intended to allow existing Set-Cookie headers to be
modified before being sent (e.g. allowing clients to set a property on a
cookie set elsewhere in code), it deals with the headers directly anyway
but it means that new cookies must also use this helper to opt-in,
instead of relying on setcookie(). E.g. where the intent is to add
partitioning support to a new cookie, that cookie must first be set
(setcookie) and then it may opt-in to partitioning via this helper;
partitioning support cannot be achieved directly through setcookie and
friends yet.
2024-03-21 15:35:48 +08:00
..
classes MDL-80835 auth_lti: add cookie helper facilitating CHIPS opt-in 2024-03-21 15:35:48 +08:00
db MDL-78496 core: Address phpcs issues with upgrade.php files 2023-11-19 21:20:53 +08:00
lang/en MDL-80836 auth_lti: deprecate no auth notice 2024-02-15 12:27:20 +08:00
templates/local/ltiadvantage MDL-80836 auth_lti: take user through login instead of sesspiggyback 2024-02-15 12:27:20 +08:00
tests MDL-80835 auth_lti: add cookie helper facilitating CHIPS opt-in 2024-03-21 15:35:48 +08:00
auth.php MDL-78219 auth_lti: ensure user updates happen after authentication 2024-01-15 15:41:52 +08:00
lib.php MDL-69542 auth_lti: add mode based user provisioning 2022-02-11 11:06:54 +08:00
login.php MDL-78219 auth_lti: ensure user updates happen after authentication 2024-01-15 15:41:52 +08:00
version.php MDL-79551 versions: bump all versions and requires near release 2023-10-04 13:57:17 +08:00