LTI 1.3 Deep linking not creating multiple

LTI 1.3 Deep linking not creating multiple

by Manuel Manso -
Number of replies: 3
Hi,

I'm trying to use Deep Linking to create multiple exercises in Moodle.

I'm having an issue in the last step where even though Moodle receives multiple LtiResourceLinks correctly, and shows it in the confirmation, it then only creates one of them (the last one). The screenshots below shows the multiple exercises being returned. However, after clicking "OK", in the course page, it only shows one of them.


This is the content of the signed JWT:

{

  "sub": "3cfLCn90tUDdxEN",

  "aud": "http://localhost:81",

  "https://purl.imsglobal.org/spec/lti/claim/message_type": "LtiDeepLinkingResponse",

  "https://purl.imsglobal.org/spec/lti/claim/deployment_id": "20",

  "https://purl.imsglobal.org/spec/lti/claim/version": "1.3.0",

  "https://purl.imsglobal.org/spec/lti-dl/claim/content_items": "[{\"type\":\"ltiResourceLink\",\"title\":\"Title 1\",\"url\":\"http:\\/\\/localhost:9000\\/courses\\/28\\/exercises\\/12\"},{\"type\":\"ltiResourceLink\",\"title\":\"Title 2\",\"url\":\"http:\\/\\/localhost:9000\\/courses\\/28\\/exercises\\/13\"},{\"type\":\"ltiResourceLink\",\"title\":\"Title 3\",\"url\":\"http:\\/\\/localhost:9000\\/courses\\/28\\/exercises\\/16\"},{\"type\":\"ltiResourceLink\",\"title\":\"Title 4\",\"url\":\"http:\\/\\/localhost:9000\\/courses\\/28\\/exercises\\/19\"}]",

  "iss": "3cfLCn90tUDdxEN",

  "exp": 1669029192,

  "iat": 1669029132,

  "jti": "61999577-19e5-4b2a-987f-5d159a4a61c6"

}



What is going wrong? Am I maybe not returning all the required fields for each "ltiResourceLink"?

Thanks for the help!
Average of ratings: -
In reply to Manuel Manso

Re: LTI 1.3 Deep linking not creating multiple

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 Manuel,

I believe this is caused by the issue reported in MDL-74593. If you try to create the items using a new instance of the external tool, it should work fine (whereas using 'edit' won't, per that issue).

Cheers,
In reply to Jake Dallimore

Re: LTI 1.3 Deep linking not creating multiple

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Is that the same as, or different from, MDL-73847 ?
In reply to Tim Hunt

Re: LTI 1.3 Deep linking not creating multiple

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 Tim,

As far as I know, those are different issues.  The failure to create multiple being caused by firing off content selection in an already-saved mod_lti instance. In a new instance (as yet unsaved), multiple items can be created ok.

Cheers
Average of ratings:Useful (1)