Skip to content

Conversation

dsteinmo
Copy link
Contributor

@dsteinmo dsteinmo commented Oct 5, 2017

The default LTI parameter is custom_student_id, otherwise it can be set in authen_LTI.conf.

Derek Steinmoeller added 2 commits October 5, 2017 14:34
@mgage mgage requested review from dlglin and Alex-Jordan January 1, 2018 16:33
@mgage
Copy link
Member

mgage commented Jun 6, 2018

For the test with Canvas used: $preferred_source_of_student_id = "ext_d2l_orgdefinedid"
as the name of the LTI parameter describing the student and set it to $User.username.
This is configured in canvas as a custom parameter -- I wasn't sure how to retrieve the student name from canvas.
(I found the reference: https://canvas.instructure.com/doc/api/file.tools_variable_substitutions.html )

ext_d2l_orgdefinedid=$User.username

The new parameter is transmitted as custom_ext_d2l_orgdefinedid
New parameters are added to the debug list:
student id:
preferred_source_of_student_id:
custom_ext_d2l_orgdefinedid:

Turn on $LMSManageUserData=1;

This seems to do the right thing. It updates the student_id properly.

The interaction with canvas and LTI seems a little flakey (or perhaps I don't remember exactly
what it is supposed to do) but this modification doesn't affect the behavior other than in the
way it's supposed to.

LTI integration deserves another thorough review. (sigh)

@mgage mgage merged commit 7d794ea into openwebwork:develop Jun 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants