We're testing LTI authentication with Canvas, and currently I'm testing the grade modes. Grades seems to transfer correctly to canvas in either mode, but students gets a warning message after submitting an answer. The instructor also gets a warning upon every login to webwork from canvas. Currently we're testing the $LTIGradeMode = "course" grade mode. Below is an example of the errors.
Any ideas what there errors mean?
Sincerely,
Lars.
Student Warning when submitting answer:
submitting all grades for user: XXXX@tmcc.edu
Submitting grade using sourcedid: 51347-1149103-6309431-1616793-322979919c8ebbc8d9868723715b8a02ad7a741e and score: 0.14
The response is:
_request HTTP::Request=HASH(0x55a79b513250) _headers HTTP::Headers=HASH(0x55a79b512cc8) _rc 200 _msg OK _content <?xml version="1.0" encoding="UTF-8"?>
<imsx_POXEnvelopeResponse xmlns="http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0">
<imsx_POXHeader>
<imsx_POXResponseHeaderInfo>
<imsx_version>V1.0</imsx_version>
<imsx_messageIdentifier/>
<imsx_statusInfo>
<imsx_codeMajor>success</imsx_codeMajor>
<imsx_severity>status</imsx_severity>
<imsx_description/>
<imsx_messageRefIdentifier>999999123</imsx_messageRefIdentifier>
<imsx_operationRefIdentifier>replaceResult</imsx_operationRefIdentifier>
</imsx_statusInfo>
</imsx_POXResponseHeaderInfo>
</imsx_POXHeader>
<imsx_POXBody><replaceResultResponse/></imsx_POXBody>
</imsx_POXEnvelopeResponse>
_protocol HTTP/1.1 at /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced/SubmitGrade.pm line 320.
The request was:
_method POST _uri_canonical https://tmcc.instructure.com/api/lti/v1/tools/51347/grade_passback _content <?xml version = "1.0" encoding = "UTF-8"?>
<imsx_POXEnvelopeRequest xmlns = "http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0">
<imsx_POXHeader>
<imsx_POXRequestHeaderInfo>
<imsx_version>V1.0</imsx_version>
<imsx_messageIdentifier>999999123</imsx_messageIdentifier>
</imsx_POXRequestHeaderInfo>
</imsx_POXHeader>
<imsx_POXBody>
<replaceResultRequest>
<resultRecord>
<sourcedGUID>
<sourcedId>51347-1149103-6309431-1616793-322979919c8ebbc8d9868723715b8a02ad7a741e</sourcedId>
</sourcedGUID>
<result>
<resultScore>
<language>en</language>
<textString>0.14</textString>
</resultScore>
</result>
</resultRecord>
</replaceResultRequest>
</imsx_POXBody>
</imsx_POXEnvelopeRequest> _uri https://tmcc.instructure.com/api/lti/v1/tools/51347/grade_passback _headers HTTP::Headers=HASH(0x55a79a4a4cc8) at /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced/SubmitGrade.pm line 321.
result is: success
Warning when instructor logs in from canvas:
===== parameters received =======
oauth_consumer_key => webwork
user_image => https://canvas.instructure.com/images/messages/avatar-50.png
oauth_signature => 7lqsTpK0lQmTE2FeL7bQ8y7Bdb4=
context_label => 2212MATH_126_3008
custom_canvas_workflow_state => available
ext_ims_lis_basic_outcome_url => https://tmcc.instructure.com/api/lti/v1/tools/51347/ext_grade_passback
custom_canvas_course_id => 1149103
ext_outcome_submission_submitted_at_accepted => true
lis_person_name_given => Lars
oauth_timestamp => 1606108746
ext_lti_assignment_id => 610ba2a8-ce45-430c-bba2-4bf00f035614
oauth_nonce => u8BEpPEeQdOiXXSR8BVQaK7xZIQL4d1VjtxYOoxYHg
custom_canvas_user_id => 1289529
oauth_version => 1.0
custom_canvas_enrollment_state => active
custom_canvas_assignment_id => 6309431
tool_consumer_instance_guid => 3d9996613fefda5d8d7e29ac5c587197d300f16d.canvas.instructure.com
context_title => Sp21MATH126_3008_WB, Pre-Calculus I(Jensen)
launch_presentation_return_url => https://tmcc.instructure.com/courses/1149103/assignments
lti_message_type => basic-lti-launch-request
context_id => 025604511918b945b78ced9c549bdf4fd6fac197
ext_roles => urn:lti:instrole:ims/lis/Instructor,urn:lti:instrole:ims/lis/Student,urn:lti:role:ims/lis/Instructor,urn:lti:sysrole:ims/lis/User
oauth_callback => about:blank
resource_link_id => 0a025e8a8343340c8a56b1326aedc3b0f3a5c36d
ext_outcome_result_total_score_accepted => true
tool_consumer_instance_name => Truckee Meadows Community College
ext_outcome_data_values_accepted => url,text
resource_link_title => Total grade
roles => Instructor
lis_person_name_full => Lars Jensen
custom_canvas_assignment_points_possible => 100
lis_person_sourcedid => 1000134563
tool_consumer_info_version => cloud
lis_person_contact_email_primary => YYYY@TMCC.EDU
oauth_signature_method => HMAC-SHA1
custom_canvas_user_login_id => YYYY
user_id => fccc99bef8d0000b1e2442e93e3c9be240b0a542
launch_presentation_locale => en
tool_consumer_info_product_family_code => canvas
ext_outcomes_tool_placement_url => https://tmcc.instructure.com/api/lti/v1/turnitin/outcomes_placement/51347
lis_outcome_service_url => https://tmcc.instructure.com/api/lti/v1/tools/51347/grade_passback
tool_consumer_instance_contact_email => notifications@instructure.com
custom_canvas_assignment_title => Total grade
custom_canvas_api_domain => tmcc.instructure.com
lis_course_offering_sourcedid => 2212MATH_126_3008
lis_person_name_family => Jensen
launch_presentation_document_target => iframe
lti_version => LTI-1p0
=========== summary ============ at /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced.pm line 212.
User id is |YYYY@TMCC.EDU|
User mail address is |YYYY@TMCC.EDU|
Student id is |undefined|
preferred_source_of_username is |lis_person_contact_email_primary|
preferred_source_of_student_id is |undefined|
================================
The following path was reconstructed by WeBWorK. It should match the path in the LMS: at /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced.pm line 379.
http://mahler.tmcc.edu/webwork2/0test/ at /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced.pm line 380.
No LISSourceID! Some LMS's do not give grades to instructors, but thiscould also be a sign that external grades are not enabled in your LMS. at /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced/SubmitGrade.pm line 105.