WeBWorK Main Forum

LTI grade transfer warnings

LTI grade transfer warnings

by Lars Jensen -
Number of replies: 3
Dear Colleagues,

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.


In reply to Lars Jensen

Re: LTI grade transfer warnings

by Nathan Wallach -

By default  $debug_lti_parameters=1 is set (it is set this way in authen_LTI.conf.dist which is typically copied to an intiial version of authen_LTI.conf).

Once you have things working you should change it to  $debug_lti_parameters=0 to get rid of this data.

See:
In reply to Lars Jensen

Re: LTI grade transfer warnings

by Lars Jensen -

Dear Colleagues,

Actually the warning message appears whether I have any grade mode turned on or not, so I turned the grade modes off, and a warning like the one included below still appear upon LTI login from canvas to webwork. Debugging is been turned off.  except for the warnings, the site appears to work fine, and when I turn the grade modes on, grades seems to transfer correctly to Canvas too.

Any ideas what could cause the warning messages to appear?

Sincerely,
Lars.

Warning messages

  • ===== parameters received =======
  • ext_outcome_data_values_accepted => url,text
  • roles => Learner
  • ext_lti_assignment_id => caf9731b-81fd-45ff-a20d-5f57bbb57ced
  • tool_consumer_info_product_family_code => canvas
  • user_image => https://canvas.instructure.com/images/messages/avatar-50.png
  • oauth_signature => B1+X4v74iI1GLFq2YE/IUNhzmFk=
  • lis_person_name_given => Brandur
  • oauth_signature_method => HMAC-SHA1
  • lis_outcome_service_url => https://tmcc.instructure.com/api/lti/v1/tools/51347/grade_passback
  • lis_person_name_family => JenXXX
  • context_id => 025604511918b945b78ced9c549bdf4fd6fac197
  • custom_canvas_enrollment_state => active
  • lti_version => LTI-1p0
  • oauth_version => 1.0
  • context_title => Sp21MATH126_3008_WB, Pre-Calculus I(Jensen)
  • resource_link_id => 4b0e88836cd2be3511eb842ac9395879c2914ae7
  • custom_canvas_assignment_id => 6309371
  • ext_outcomes_tool_placement_url => https://tmcc.instructure.com/api/lti/v1/turnitin/outcomes_placement/51347
  • oauth_nonce => WWvVv5nSPQtE3l9ovFIlgRQHvKSHBqfFGBrIkua3so
  • ext_outcome_result_total_score_accepted => true
  • tool_consumer_instance_contact_email => notifications@instructure.com
  • ext_roles => urn:lti:instrole:ims/lis/Student,urn:lti:role:ims/lis/Learner,urn:lti:sysrole:ims/lis/User
  • custom_canvas_assignment_title => Webwork a
  • custom_canvas_assignment_points_possible => 100
  • lis_person_sourcedid => 1003170401
  • oauth_timestamp => 1606247830
  • lis_person_name_full => BrYYYYY JenXXX
  • context_label => 2212MATH_126_3008
  • user_id => 6b7d9930f48071f4ea1c43673cac2e56ee6f3398
  • custom_canvas_user_id => 3717788
  • launch_presentation_document_target => iframe
  • lti_message_type => basic-lti-launch-request
  • custom_canvas_course_id => 1149103
  • ext_outcome_submission_submitted_at_accepted => true
  • lis_person_contact_email_primary => xxxxxx1@mail.tmcc.edu
  • ext_ims_lis_basic_outcome_url => https://tmcc.instructure.com/api/lti/v1/tools/51347/ext_grade_passback
  • custom_canvas_workflow_state => available
  • oauth_consumer_key => webwork
  • tool_consumer_info_version => cloud
  • lis_result_sourcedid => 51347-1149103-6309371-3717788-acc0dfd1a85110aa320fda77fb3ecc65f742acfe
  • custom_canvas_api_domain => tmcc.instructure.com
  • resource_link_title => Webwork a
  • tool_consumer_instance_name => Truckee Meadows Community College
  • launch_presentation_return_url => https://tmcc.instructure.com/courses/1149103/external_content/success/external_tool_redirect
  • launch_presentation_locale => en
  • oauth_callback => about:blank
  • custom_canvas_user_login_id => xxxxx1
  • tool_consumer_instance_guid => 3d9996613fefda5d8d7e29ac5c587197d300f16d.canvas.instructure.com
  • lis_course_offering_sourcedid => 2212MATH_126_3008
  • =========== summary ============ at /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced.pm line 212.
  • User id is |brandur_jxxxxx@mail.tmcc.edu|
  • User mail address is |xxxxxx1@mail.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/set01/ at /opt/webwork/webwork2/lib/WeBWorK/Authen/LTIAdvanced.pm line 380.

In reply to Lars Jensen

Re: LTI grade transfer warnings

by Lars Jensen -
...figured out what is going on...I didn't realize that $debug_lti_parameters = ; appear both in authen_LTI.conf and in localOverrides.conf, and I had only set it to 0 in the former. Hence the persistent warnings.

Sincerely,
Lars.