Activity Feed
- Kudoed Unable to pass custom data in LTI Launch request. What is the correct way? for oloff_b. 07-30-2020 02:45 PM
- Kudoed Re: Unable to pass custom data in LTI Launch request. What is the correct way? for karl. 07-30-2020 02:45 PM
- Got a Kudo for Unable to pass custom data in LTI Launch request. What is the correct way?. 07-30-2020 02:45 PM
- Posted Uncertain About Lti Basic Launch for Submitted Assignment on Canvas Developers Group. 07-05-2020 01:52 AM
- Tagged Uncertain About Lti Basic Launch for Submitted Assignment on Canvas Developers Group. 07-05-2020 01:52 AM
- Tagged Uncertain About Lti Basic Launch for Submitted Assignment on Canvas Developers Group. 07-05-2020 01:52 AM
- Tagged Uncertain About Lti Basic Launch for Submitted Assignment on Canvas Developers Group. 07-05-2020 01:52 AM
- Tagged Uncertain About Lti Basic Launch for Submitted Assignment on Canvas Developers Group. 07-05-2020 01:52 AM
- Tagged Uncertain About Lti Basic Launch for Submitted Assignment on Canvas Developers Group. 07-05-2020 01:52 AM
- Kudoed Re: Error 422 on LTI Advantage grade passback for chuck_wight. 07-04-2020 04:35 PM
- Kudoed Receive error Code 422 Unprocessable Entity using API in Javascript for tadm9280. 07-04-2020 04:34 PM
- Posted Re: Unable to pass custom data in LTI Launch request. What is the correct way? on Canvas Developers Group. 07-04-2020 12:42 PM
- Posted Re: Error 422 on LTI Advantage grade passback on Canvas Question Forum. 06-28-2020 12:11 AM
- Kudoed Error 422 on LTI Advantage grade passback for chuck_wight. 06-27-2020 04:35 AM
- Posted Unable to pass custom data in LTI Launch request. What is the correct way? on Canvas Developers Group. 06-20-2020 03:12 PM
- Tagged Unable to pass custom data in LTI Launch request. What is the correct way? on Canvas Developers Group. 06-20-2020 03:12 PM
- Tagged Unable to pass custom data in LTI Launch request. What is the correct way? on Canvas Developers Group. 06-20-2020 03:12 PM
- Tagged Unable to pass custom data in LTI Launch request. What is the correct way? on Canvas Developers Group. 06-20-2020 03:12 PM
- Tagged Unable to pass custom data in LTI Launch request. What is the correct way? on Canvas Developers Group. 06-20-2020 03:12 PM
My Posts
Post Details | Date Published | Views | Kudos |
---|---|---|---|
Uncertain About Lti Basic Launch for Submitted Assignment We have an lti tool which makes an assignment submission via the Score service (part of Assignment and Grading Services). The submission works fine and the assignment shows up in the student Grade... |
07-05-2020 |
879 |
0 |
Unable to pass custom data in LTI Launch request. What is the correct way? Hi everyone, I am trying to pass custom data for a deep linking assignment placement. The custom data is set in the lti deep linking response, as part of the lti resource link item. Then, it needs... |
06-20-2020 |
2077 |
1 |
07-05-2020
01:52 AM
We have an lti tool which makes an assignment submission via the Score service (part of Assignment and Grading Services). The submission works fine and the assignment shows up in the student Grades view as "not yet graded", which is correct. The problem is that when I try to access the assignment from the student view, I get an error message saying: "Couldn't find valid settings for this link" I'm not sure why this is because it is the same path used to access the tool resource that works before. The only difference is that there are some additional parameters in the query string. To give you an idea, here is how the Score object that gets submitted to Canvas looks: { "userId": "12345675453", "timestamp": "2020-04-16T18:54:36.736+00:00", "activityProgress": "Submitted", "gradingProgress": "PendingManual", "https://canvas.instructure.com/lti/submission": { "new_submission": true, "submission_type": "basic_lti_launch", "submission_data": "https://mytool.com/lti/assignment?param=biz&otherparam=baz" } } I am using the submission_data URL to ensure that the instructor can see the correct submission in the external tool within SpeedGrader. I'm not sure why Canvas is giving this error, since the https://mytool.com/lti/assignment URL is listed in the tool configuration under Redirect URIs. Also, this URL works fine when a student opens the assignment before they submit it. Am I understanding something incorrectly? Should the "submission_type" be set to something else? Or should "submission_data" be a different URL? One thing is that
... View more
07-04-2020
12:42 PM
The workaround for this was to simply pass the data in the query string. E.g. { "type": "ltiResourceLink", "title": "Test assignment", "text": "A test assignment", "url": "myResourceLink?assignment_id=1234567", "lineItem": { "scoreMaximum": "10", "label": "Assignment", "resourceId": "1234" }, .... It seems that Canvas will only allow passing variable substitution values as custom data in the launch. This must be configured in the tool settings and cannot be modified by the tool itself in the deep link response.
... View more
06-28-2020
12:11 AM
I'm having the same issue with the Scores service. Could someone please verify that the problem really is the Test Student. The documentation on this is not very helpful and it seems to be incorrect. Have a look at Score - Canvas LMS REST API Documentation. For the userId property it states: The lti_user_id or the Canvas user_id. Returns a 412 if user not found in Canvas or is not a student. This is clearly not the case, since it actually returns a 422 code, like you said. A 412 would be an invalid response in this case, so it would be good if Instructure could update the documentation.
... View more
06-20-2020
03:12 PM
1 Kudo
Hi everyone, I am trying to pass custom data for a deep linking assignment placement. The custom data is set in the lti deep linking response, as part of the lti resource link item. Then, it needs to be available on the https://purl.imsglobal.org/spec/lti/claim/custom claim in the lti launch request to the tool. Here is an example of what I have in the deep linking response when the assignment gets created: ... "https://purl.imsglobal.org/spec/lti/claim/version": "1.3.0", "https://purl.imsglobal.org/spec/lti-dl/claim/content_items": [ { "type": "ltiResourceLink", "title": "Test assignment", "text": "A test assignment", "url": "somelink...", "lineItem": { "scoreMaximum": "10", "label": "Assignment", "resourceId": "1234" }, "window": { "targetName": "MyTool_1592687225123_1234", "windowFeatures": "menubar=yes,location=yes,status=yes,resizable=yes,scrollbars=no" }, "iframe": { "width": 800, "height": 600 }, "custom": { "assignment_type": "specific_assignment_type", "assignment_id": "1234_5678" } } ] Here is the problem: when I try to access the https://purl.imsglobal.org/spec/lti/claim/custom property in the lti launch request message, it is empty. It seems like my custom data isn't being passed in the launch request. Does anyone know what I am doing wrong? Is this the correct way to pass custom data to the launch or is it supposed to be done differently? I'd really appreciate any help on this.
... View more
Labels
- Labels:
-
LTI