Restrict access by time? LTI 1.3 Deep Link

Restrict access by time? LTI 1.3 Deep Link

by Greg Houston -
Number of replies: 1


Can a Tool respond to Moodle's Deep Link with an LtiResourceLink which is restricted by a time range?

can deep linking populate the restrict access fields to limit the time a resource link is available for the student?


The spec provides resource link variables "ResourceLink.available.startDateTime" and "ResourceLink.available.endDateTime"  (see http://www.imsglobal.org/spec/lti/v1p3/#lti-resourcelink-variables)

Also the LTI1.3 Deep Link spec shows an example of sending these values in a response (see https://www.imsglobal.org/node/162911#deep-linking-response-example)

for example:
{

  "type": "ltiResourceLink",

  "title": "A title",

  ...

  "available": {

    "startDateTime": "2018-02-06T20:05:02Z",

    "endDateTime": "2018-03-07T20:05:02Z"

  },

 ...

}


I have tried sending responses with "available" parameters to Moodle 3.11.5 and have not succeeded in populating the restrictions for when to display the resource link to the student.

Is this feature not supported?  If it is supported, can you provide an example of how to Restrict Access?

Thanks!

Average of ratings: -
In reply to Greg Houston

Re: Restrict access by time? LTI 1.3 Deep Link

by Jake Dallimore -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi Greg,

The short answer is currently no. You can see the parsing of the content item return into activity instance data in this code but there isn't anything dealing with the availability information. This is proposed in MDL-69469, though that issue does appear to suggest linking it with completion data rather than access restriction data. Might be worth adding your thoughts to the discussion there.

Cheers,
Jake