Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #43147: LTI 1.3 Cosumer authentication fails with provider on different domain #8756

Open
wants to merge 2 commits into
base: release_8
Choose a base branch
from

Conversation

fneumann
Copy link
Contributor

https://mantis.ilias.de/view.php?id=43147

Set an addititional PHPSESSID cookie for LTI 1.3 authentication

  • The standard cookie does not work with LTI tools on different domains because it has samesite = Lax
  • The additional cookie sets samesite to None so that it is sent with the POST request from the LTI tool
  • Limit the additional cookie to the path of the ltiauth.php script
  • Force secure to require HTTPS (needed for samesite = None)

See https://web.dev/articles/samesite-cookie-recipes?hl=en#unsafe-requests

@fneumann fneumann added bugfix php Pull requests that update Php code labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants