LTI 1.3 deep linking - sending multiple assessments

LTI 1.3 deep linking - sending multiple assessments

by Mani P S -
Number of replies: 2

Hi,

As an instructor, I created an assessment and linked it to the platform as a deep linking resource. When I logged in as a student, the assessments are not listed under the course. 


I have selected an assessment under Testy Tool, and I have named it as 'Decimal'. It is not listed under Testy Tool.

I am totally new to LTI and sorry for the trouble

Please find my payload below. 

{

  "nonce": "nonce-6268e3015ede73.24498828",

  "iat": 1651041025,

  "exp": 1651041085,

  "iss": "https://sandbox.moodledemo.net",

  "aud": "1HoIUA4kYWD5FvI",

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

  "https://purl.imsglobal.org/spec/lti/claim/target_link_uri": "https://psc23360.illuminateed.io/qa23360/ltiadvantage/assessment/",

  "sub": "4",

  "https://purl.imsglobal.org/spec/lti/claim/lis": {

    "person_sourcedid": "",

    "course_section_sourcedid": ""

  },

  "https://purl.imsglobal.org/spec/lti/claim/roles": [

    "http://purl.imsglobal.org/vocab/lis/v2/membership#Learner"

  ],

  "https://purl.imsglobal.org/spec/lti/claim/context": {

    "id": "3",

    "label": "My second course",

    "title": "My second course",

    "type": [

      "CourseSection"

    ]

  },

  "https://purl.imsglobal.org/spec/lti/claim/resource_link": {

    "title": "Testy Tool",

    "id": "2"

  },

  "https://purl.imsglobal.org/spec/lti-bo/claim/basicoutcome": {

    "lis_result_sourcedid": "{\"data\":{\"instanceid\":\"2\",\"userid\":\"4\",\"typeid\":\"1\",\"launchid\":984220610},\"hash\":\"745bbe37bb6a0fe45539f0454866c313919e16ce0b662b7ebf29e0ad7cb3546f\"}",

    "lis_outcome_service_url": "https://sandbox.moodledemo.net/mod/lti/service.php"

  },

  "given_name": "Sam",

  "family_name": "Student",

  "name": "Sam Student",

  "https://purl.imsglobal.org/spec/lti/claim/ext": {

    "user_username": "student",

    "lms": "moodle-2"

  },

  "email": "student@moodle.a",

  "https://purl.imsglobal.org/spec/lti/claim/launch_presentation": {

    "locale": "en",

    "document_target": "iframe",

    "return_url": "https://sandbox.moodledemo.net/mod/lti/return.php?course=3&launch_container=2&instanceid=2&sesskey=92EyIEhna5"

  },

  "https://purl.imsglobal.org/spec/lti/claim/tool_platform": {

    "product_family_code": "moodle",

    "version": "2022041900.01",

    "guid": "1f60aaf6991f55818465e52f3d2879b7",

    "name": "Sandbox",

    "description": "Moodle sandbox demo"

  },

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

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

  "https://purl.imsglobal.org/spec/lti/claim/custom": {

    "roster_id": "1326",

    "context_memberships_url": "https://sandbox.moodledemo.net/mod/lti/services.php/CourseSection/3/bindings/1/memberships",

    "system_setting_url": "https://sandbox.moodledemo.net/mod/lti/services.php/tool/1/custom",

    "context_setting_url": "https://sandbox.moodledemo.net/mod/lti/services.php/CourseSection/3/bindings/tool/1/custom",

    "link_setting_url": "https://sandbox.moodledemo.net/mod/lti/services.php/links/{link_id}/custom"

  },

  "https://purl.imsglobal.org/spec/lti-ags/claim/endpoint": {

    "scope": [

      "https://purl.imsglobal.org/spec/lti-ags/scope/lineitem",

      "https://purl.imsglobal.org/spec/lti-ags/scope/lineitem.readonly",

      "https://purl.imsglobal.org/spec/lti-ags/scope/result.readonly",

      "https://purl.imsglobal.org/spec/lti-ags/scope/score"

    ],

    "lineitems": "https://sandbox.moodledemo.net/mod/lti/services.php/3/lineitems?type_id=1",

    "lineitem": "https://sandbox.moodledemo.net/mod/lti/services.php/3/lineitems/7/lineitem?type_id=1"

  },

  "https://purl.imsglobal.org/spec/lti-nrps/claim/namesroleservice": {

    "context_memberships_url": "https://sandbox.moodledemo.net/mod/lti/services.php/CourseSection/3/bindings/1/memberships",

    "service_versions": [

      "1.0",

      "2.0"

    ]

  }

}




 


Average of ratings: -
In reply to Mani P S

Re: LTI 1.3 deep linking - sending multiple assessments

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

It sounds like you're able to get past the "Select content" part and can see the activity in the course section as a teacher. Correct? This then sounds like an issue with Moodle permissions for the student. Check the permissions of the student role (Participants > Permissions > Select the "Student" role). They need to have the capability "mod/lti:view" to be able to see and launch external tool links.

Hope that helps,
Jake
In reply to Jake Dallimore

Re: LTI 1.3 deep linking - sending multiple assessments

by Mani P S -
Hi Jake,

I've checked the permissions of the student.



It seems to be ok.

I have got a question.

Could you please share how the public and private key works?
What I have done is, I have a private key for the tool which is saved in the database
When a request comes from the platform, I am validating that token with that by parsing the platform's public key set url.
And while sending the deeplink request, I will be sending the token encrypted using my private key. I don't have any public key saved. 
When platform access my public keyset url, it will access the same private key.

Please let me know which logic is correct or not.



Thanks