How to configure Deep link launch URLs with path parameters and query parameters for Moodle v3.8, 3.9 & 3.10?

How to configure Deep link launch URLs with path parameters and query parameters for Moodle v3.8, 3.9 & 3.10?

by Shanushika Iswera -
Number of replies: 1

We are implementing LTI 1.3 Deep linking functionality for moodle 3.8, 3.9, 3.10 and as per our design deep link launch URLs have path parameters and query parameters. However, when these links are launched the following error is observed:

error: invalid_request
error_description: Unregistered redirect_uri https:// Deep link launch url>

Please guide us on how can we add URLs with dynamic path parameters and query parameters to the redirect_urls section of the tool? Does moodle support wildcards?


Average of ratings: -
In reply to Shanushika Iswera

Re: How to configure Deep link launch URLs with path parameters and query parameters for Moodle v3.8, 3.9 & 3.10?

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

It sounds like you're building a tool that returns content items via the deep linking content selection flow. Normally, the custom property of the linkitem (https://www.imsglobal.org/lti/model/mediatype/application/vnd/ims/lti/v1/contentitems%2Bjson/index.html#LtiLinkItem) is what's used to return arbitrary data alongside a content item (e.g. guid of the item), for use in the subsequent launch of said item later on, via a generic launch URL (tool/launch.php). Then, during launch, the custom claim (http://www.imsglobal.org/spec/lti/v1p3/#custom-properties-and-variable-substitution) is used to send this information over to the tool. Effectively you're using a claim to send this data back and forth, rather than via URL params.

Does this answer your question?
Jake