Skip to content

Commit

Permalink
Include display_name in the Canvas custom variables
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Feb 6, 2024
1 parent 79cbeaf commit 3601e82
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lms/templates/config.xml.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticp_v1p0.xsd">
<blti:custom>
<lticm:property name="custom_canvas_course_id">$Canvas.course.id</lticm:property>
<lticm:property name="custom_canvas_api_domain">$Canvas.api.domain</lticm:property>
<lticm:property name="custom_display_name">$Person.name.display</lticm:property>
</blti:custom>
<blti:extensions platform="canvas.instructure.com">
<lticm:options name="link_selection">
Expand Down
1 change: 1 addition & 0 deletions lms/views/canvas/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def config_json(request):
"custom_canvas_course_id": "$Canvas.course.id",
"custom_canvas_api_domain": "$Canvas.api.domain",
"custom_canvas_user_id": "$Canvas.user.id",
"custom_display_name": "$Person.name.display",
},
"scopes": [
"https://purl.imsglobal.org/spec/lti-ags/scope/score",
Expand Down
1 change: 1 addition & 0 deletions tests/unit/lms/views/canvas/config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def test_it(self, pyramid_request):
"custom_canvas_course_id": "$Canvas.course.id",
"custom_canvas_api_domain": "$Canvas.api.domain",
"custom_canvas_user_id": "$Canvas.user.id",
"custom_display_name": "$Person.name.display",
},
"scopes": [
"https://purl.imsglobal.org/spec/lti-ags/scope/score",
Expand Down

0 comments on commit 3601e82

Please sign in to comment.