Skip to content

Allow redirect from teams meetings app to work with SameSite=Lax cookie#3228

Open
weilai-irl wants to merge 1 commit into
wip-130956-m500from
wip-131950-m500
Open

Allow redirect from teams meetings app to work with SameSite=Lax cookie#3228
weilai-irl wants to merge 1 commit into
wip-130956-m500from
wip-131950-m500

Conversation

@weilai-irl

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 12, 2026 15:09
@weilai-irl weilai-irl self-assigned this Jun 12, 2026
@weilai-irl weilai-irl added this to the 2026-03 milestone Jun 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to make the Teams Meetings app callback work when Moodle’s session cookie is SameSite=Lax, by adding a cross-site POST “repost” handshake in tiny_teamsmeeting so the second (same-site) POST includes the existing session cookie and require_login() can succeed.

Changes:

  • Add a repost-handshake branch before require_login() to handle cross-site POSTs that arrive without the session cookie.
  • Render an auto-submit repost page to re-POST the payload in a same-site context (intended to restore cookie inclusion).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +38 to +42
$output = $PAGE->get_renderer('mod_lti');
$page = new \mod_lti\output\repost_crosssite_page($_SERVER['REQUEST_URI'], $_POST);
echo $output->header();
echo $output->render($page);
echo $output->footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants