"error : invalid_request" is coming instead of id_token in LTI 1.3 sporadically

"error : invalid_request" is coming instead of id_token in LTI 1.3 sporadically

by Janaka Pushpakumara -
Number of replies: 5

Hello,
We are using LTI 1.3 tool in moodle 3.8 version (http://3plcgmoodleprd.prd-prsn.com/moodle38/) and experiencing a sporadic issue when launching LTI 1.3 tool for the second time and also after refreshing the page. For a valid tool launch, when Moodle calls to target link URL we are expecting a parameter called id_token along with the JWT as a value, but sporadically we are observing a form data as "error: invalid_request". How can we resolve this?

Average of ratings: -
In reply to Janaka Pushpakumara

Re: "error : invalid_request" is coming instead of id_token in LTI 1.3 sporadically

by Damith Perera -
Hello,
Is there anyone having an idea about this? We are still facing this issue in Moodle 3.8 version.
In reply to Janaka Pushpakumara

Re: "error : invalid_request" is coming instead of id_token in LTI 1.3 sporadically

by Heesoo Jang -

Hello, we are having the same issue, when Moodle calls our LTI tool it makes the call without id_token set correctly. The form data is "error:invalid_request". We see this on moodle version 3.9 as well as 3.10.4


Any updates to this issue?

In reply to Heesoo Jang

Re: "error : invalid_request" is coming instead of id_token in LTI 1.3 sporadically

by Benjamin Maerkle -
I had a similar problem where id_token was missing. My issue was that the client_id was not configured correctly on my tool's database, which caused the JWT to not decrypt properly. So, double-check the client_id on your tool's database. Also, it may help to remove and remake the tool configuration from Moodle, and then double-check the client_id again (since it would have changed when you remade the tool).
In reply to Janaka Pushpakumara

Re: "error : invalid_request" is coming instead of id_token in LTI 1.3 sporadically

by Jake Dallimore -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Janaka (and others)

Any chance you can inspect the launches using your browser dev tools (the network tab, filtering on 'Doc' or 'HTML') and see if there's anything erroneous in there? Any warnings, etc. What is the response from mod/lti/auth.php, for example?

TIA
Jake
In reply to Jake Dallimore

Re: "error : invalid_request" is coming instead of id_token in LTI 1.3 sporadically

by Janaka Pushpakumara -
Hi Jake,

yes, we investigated that and there wasn't any erroneous things in browser dev tool network. Further more As per our observation, this issue is associated with tool launch. We tried to reproduce the bug with following different combinations.

Browser Is Produced

  • Chrome + Windows = YES
  • Chrome + Linux = NO
  • Firefox + Windows = NO
  • Edge + Window = NO


According to our investigation, this issue is in Moodle end and also it is connected with browser.
Attachment error.PNG