Canvas not sending lis_result_sourcedid when launching external assignment tool

1,123 views
Skip to first unread message

ma...@makarius.me

unread,
Apr 16, 2014, 6:08:35 PM4/16/14
to canvas-l...@googlegroups.com
Hi,

I am developing an LTI tool to provide assessment.

As far as I understand I can post the grading back to canvas by posting to lis_outcome_service_url and providing sourcedId
Does this sourceId attribute has to correspond to lis_result_sourceid provided by the tool consumer? 

If so, canvas is not passing this attribute, although lis_outcome_service_url is present, I am launching the tool as an assignment.

Otherwise how do I generate sourcedId from what canvas provided on the tool launch?


Here are the params provided by canvas on tool launch:

{"oauth_consumer_key"=>"534c28479e14394ebb000001",
 "oauth_signature_method"=>"HMAC-SHA1",
 "oauth_timestamp"=>"1397685143",
 "oauth_nonce"=>"kvuTbbtswtLdc23Gv3cWGZkaQn6SqajQ8uJgOj7Sg0",
 "oauth_version"=>"1.0",
 "context_id"=>"ba16be80f18a30ddf6995c8f1f995300abc40111",
 "context_label"=>"Course 1",
 "context_title"=>"Course 1",
 "custom_canvas_assignment_points_possible"=>"10",
 "custom_canvas_assignment_title"=>"Assignment 1",
 "custom_canvas_enrollment_state"=>"active",
 "ext_ims_lis_basic_outcome_url"=>"http://localhost:3000/api/lti/v1/tools/2/ext_grade_passback",
 "ext_outcome_data_values_accepted"=>"url,
text",
 "launch_presentation_document_target"=>"iframe",
 "launch_presentation_locale"=>"en",
 "launch_presentation_return_url"=>"http://localhost:3000/courses/2/external_tools/2/finished",
 "lis_outcome_service_url"=>"http://localhost:3000/api/lti/v1/tools/2/grade_passback",
 "lis_person_name_family"=>"Ortega",
 "lis_person_name_full"=>"Macario Ortega",
 "lis_person_name_given"=>"Macario",
 "lti_message_type"=>"basic-lti-launch-request",
 "lti_version"=>"LTI-1p0",
 "oauth_callback"=>"about:blank",
 "resource_link_id"=>"fe16bf97ab0fd80bfb99ea8d02662c64dca2aae4",
 "resource_link_title"=>"Canvas Section",
 "roles"=>"Instructor,
urn:lti:instrole:ims/lis/Administrator",
 "tool_consumer_info_product_family_code"=>"canvas",
 "tool_consumer_info_version"=>"cloud",
 "tool_consumer_instance_contact_email"=>"can...@example.com",
 "tool_consumer_instance_guid"=>"CqHZQPuSsQcj1SvZ9165tB10mUuafY86T10FtrzD",
 "tool_consumer_instance_name"=>"Itexico",
 "user_id"=>"6cd2e0d65bd5aef3b5ee56a64bdcd595e447bc8f",
 "user_image"=>"https://secure.gravatar.com/avatar/2e63df8b4fa24fc83fc24fa2b39f0f73?s=50&d=https%3A%2F%2Fcanvas.instructure.com%2Fimages%2Fmessages%2Favatar-50.png",
 "oauth_signature"=>"FAMnkUHSXTuhJOUkbsgt6qIg02I=",
 "id"=>"534daee19e14393d56000008"}

Brad Humphrey

unread,
Apr 17, 2014, 10:50:28 AM4/17/14
to canvas-l...@googlegroups.com
Canvas only sends the lis_result_sourceid for student users on assignment launches.  In this launch you are an Instructor and an Administrator.


       


--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ma...@makarius.me

unread,
Apr 21, 2014, 1:35:37 PM4/21/14
to canvas-l...@googlegroups.com, ma...@makarius.me

Thanks! That was it.
"cloud",
 "tool_consumer_instance_contact_email"=>"canvas@example.com",
 "tool_consumer_instance_guid"=>"CqHZQPuSsQcj1SvZ9165tB10mUuafY86T10FtrzD",
 "tool_consumer_instance_name"=>"Itexico",
 "user_id"=>"6cd2e0d65bd5aef3b5ee56a64bdcd595e447bc8f",
 "user_image"=>"https://secure.gravatar.com/avatar/2e63df8b4fa24fc83fc24fa2b39f0f73?s=50&d=https%3A%2F%2Fcanvas.instructure.com%2Fimages%2Fmessages%2Favatar-50.png",
 "oauth_signature"=>"FAMnkUHSXTuhJOUkbsgt6qIg02I=",
 "id"=>"534daee19e14393d56000008"}

Nathalie Steinfeld

unread,
Oct 23, 2015, 12:23:15 PM10/23/15
to Canvas LMS Users
I have probably a related problem. I would like to grab information for lis_person_name_full.  I am testing the LTI tool as a Learner and Canvas still doesn't send for this Learner. Any idea why this could be?

[oauth_consumer_key] => 25444997
[oauth_signature_method] => HMAC-SHA1
[oauth_timestamp] => 1445616937
[oauth_nonce] => k92wHyitzJQM8ZM0ShqrtQdfGSbSg8wzYZokJiUCaHI
[oauth_version] => 1.0
[context_id] => 8c66f2409e26e733f39c678095f7c5281f2ac15a
[context_label] => Testing
[context_title] => Testing eComma
[custom_canvas_enrollment_state] => active
[ext_roles] => urn:lti:instrole:ims/lis/Instructor,urn:lti:instrole:ims/lis/Student,urn:lti:role:ims/lis/Learner,urn:lti:sysrole:ims/lis/User
[launch_presentation_document_target] => iframe
[launch_presentation_locale] => en
[lti_message_type] => basic-lti-launch-request
[lti_version] => LTI-1p0
[oauth_callback] => about:blank
[resource_link_id] => b449121cd1ca9aa0cc78f66b3de73c1567e9ace0
[resource_link_title] => eComma annotation text
[roles] => Learner
[tool_consumer_info_product_family_code] => canvas
[tool_consumer_info_version] => cloud
[tool_consumer_instance_contact_email] => notifi...@instructure.com
[tool_consumer_instance_name] => Free For Teachers
[user_id] => db5b9cd0169f8e6bf2f88234bc950fbd5d6cc351
[oauth_signature] => ODepLb4WQv8glIBeDk1iIHNhirc=


Brad Humphrey

unread,
Oct 23, 2015, 12:31:54 PM10/23/15
to canvas-l...@googlegroups.com
This is most likely related to the privacy setting for the configured tool.  You can get this information by setting the privacy level to public or by adding variable substitutions custom parameters to to request the name specifically.

Nathalie Steinfeld

unread,
Oct 26, 2015, 1:34:08 PM10/26/15
to Canvas LMS Users
Thanks so much. I completely forgot that the Canvas LTI settings had a privacy field. I set it to public and am now able to get all the user profile data that was missing from the request.
Message has been deleted

Stark

unread,
Mar 10, 2016, 9:27:58 AM3/10/16
to Canvas LMS Users
Hi, 

I am facing the problem. 
I have user whose role is student and configured the external tool with privacy level public. But I am still not getting the lis_result_sourcedid and lis_outcome_service_url.
Any idea why this might be happening.

Ran

unread,
Sep 28, 2016, 6:22:41 PM9/28/16
to Canvas LMS Users
@Stark
Hi Stark, Wondering if you found a solution. Please share.
Reply all
Reply to author
Forward
0 new messages