LTI 1.3 Deep linking not creating multiple

LTI 1.3 Deep linking not creating multiple

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!
評比平均分數: -
In reply to Manuel Manso

Re: LTI 1.3 Deep linking not creating multiple

Jake Dallimore發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片 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

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 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

Jake Dallimore發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片 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
評比平均分數:Useful (1)