LTI 1.3 auth fails when already authenticated in the same session

LTI 1.3 auth fails when already authenticated in the same session

Ruben Lagatie發表於
Number of replies: 1

Hi,

I'm currently linking our external tool to moodle using LTI1.3. I've managed to get this working, but I have the following problem: I can only successfully start/login once. The first request to mod/lti/auth.php successfully redirects me to the tool (with the correct claims and all), but after that, whenever I try to login again (e.g. when I try to launch the tool with the "Select content" button) I get the following error:

Undefined property: stdClass::$lti_message_hint in <b>/bitnami/moodle/mod/lti/auth.php</b> on line <b>58</b>

The reason is that there is no cookie being sent for the first request, but there is a one being sent for the next requests (with the name MoodleSession). It seems that, because this cookie is being sent, I get an error because the lti_message_hint is not a property of the session.

What am I doing wrong?

評比平均分數: -
In reply to Ruben Lagatie

Re: LTI 1.3 auth fails when already authenticated in the same session

Jake Dallimore發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片 Testers的相片
Hi Ruben,

Can you tell us what version of Moodle you're running? Browsers have started getting strict on cross site cookies and, as a result, older versions of Moodle won't work with newer browsers. This behaviour was patched in MDL-71887 and you can see the versions that it was landed on in the 'fixversion' field there. You need to be running at least one of those. We can troubleshoot further once we rule out what seems to be the likely cause of this 95% of the time.

Cheers,
Jake