LTI 1.3 Deep linking not creating multiple

LTI 1.3 Deep linking not creating multiple

Bởi Manuel Manso -
Số lượng các câu trả lời: 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!
Trung bình điểm đánh giá: -
Để phản hồi tới Manuel Manso

Re: LTI 1.3 Deep linking not creating multiple

Bởi Jake Dallimore -
Hình của Core developers Hình của Moodle HQ Hình của Particularly helpful Moodlers Hình của Peer reviewers Hình của Plugin developers Hình của 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,
Để phản hồi tới Jake Dallimore

Re: LTI 1.3 Deep linking not creating multiple

Bởi Tim Hunt -
Hình của Core developers Hình của Documentation writers Hình của Particularly helpful Moodlers Hình của Peer reviewers Hình của Plugin developers
Is that the same as, or different from, MDL-73847 ?
Để phản hồi tới Tim Hunt

Re: LTI 1.3 Deep linking not creating multiple

Bởi Jake Dallimore -
Hình của Core developers Hình của Moodle HQ Hình của Particularly helpful Moodlers Hình của Peer reviewers Hình của Plugin developers Hình của 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
Trung bình điểm đánh giá:Useful (1)