MDL-78578 enrol_lti: permit launch cache access during launch redirects
commit8d3fd17313e26e5110359ffaf0ee64e0c955e0e9
authorJake Dallimore <jake@moodle.com>
Tue, 27 Jun 2023 02:01:49 +0000 (27 10:01 +0800)
committerJake Dallimore <jake@moodle.com>
Tue, 27 Jun 2023 02:07:25 +0000 (27 10:07 +0800)
tree48ceb067bc9aabe4d394ef84fccd04bc0857c5b4
parenteb1fab720a61a356e4bc96abedfc0b01e39c0a9f
MDL-78578 enrol_lti: permit launch cache access during launch redirects

This handles things like site policies, which store the current URL,
redirect to the policy agreement, then redirect back the current URL
afterwards. In such cases, we want to redirect back with 'launchid' set
so that we can fetch the id_token from the session cache. This is the
same thing we already do during account binding, so the patch only
makes sure the PAGE->url is properly set before calling require_login.
enrol/lti/launch.php