Skip to content

LTI self-posting form fix#3032

Open
taniwallach wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
taniwallach:lti-self-posting-drop-repost-ww221
Open

LTI self-posting form fix#3032
taniwallach wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
taniwallach:lti-self-posting-drop-repost-ww221

Conversation

@taniwallach

Copy link
Copy Markdown
Member

Drop the repost parameter form the LTI self-posting form used after the login stage to trigger the authentication stage on the LMS.

The parameter was is not part of the LTI standard, and is used by Moodle to prevent the authentication stage from entering a self-reposting loop, as a self-reposting mechanism is used to pull in the Moodle session cookie which is no longer provided by browsers when SameSite=Lax is set on the LMS side and the sites are considered cross-site.

Having this unneeded parameter set breaks the Moodle to WeBWorK login/launch and content selection mechanism after Moodle changed to defaulting to SameSite=Lax.

Fix for #2982

login stage to trigger the authentication stage on the LMS.

The parameter was is not part of the LTI standard, and is used by Moodle
to prevent the authentication stage from entering a self-reposting loop,
as a self-reposting mechanism is used to pull in the Moodle session
cookie which is no longer provided by browsers when SameSite=Lax is set
on the LMS side and the sites are considered cross-site.

Having this unneeded parameter set breaks the Moodle to WeBWorK
login/launch and content selection mechanism after Moodle changed
to defaulting to SameSite=Lax.

Additional details are in:
    openwebwork#2982
@taniwallach taniwallach requested a review from drgrice1 June 26, 2026 07:38
@taniwallach taniwallach changed the title Drop the repost parameter form the LTI self-posting form used after the LTI self-posting form fix Jun 26, 2026

@drgrice1 drgrice1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As far as I can tell this parameter is only used by Moodle, and so this should not affect any other LMSs. So if it is causing problems for Moodle, is should be removed.

@drgrice1

Copy link
Copy Markdown
Member

Also, I have tested this with both Moodle and Canvas, and everything seems to be working.

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