how do you get the user's id when using LTI with edx?

297 views
Skip to first unread message

Robert M

unread,
May 21, 2017, 7:21:51 PM5/21/17
to General Open edX discussion
Hi,

I am using LTI to lanuch a tool from edx. 

LTI is supposed to send the user's email address, but all i get off "edx edge" is "user_id".

"user_id" works fine for uniquely identifying the user, but if the user has a problem and I need to reset his/her data, then I have no way to determine which user he/she is.

Is there anyway to get the user's email address? Or for the user to figure out what his/her anonymous user_id is?


Robert

Robert M

unread,
May 21, 2017, 7:26:14 PM5/21/17
to General Open edX discussion
then again, I just read edx LTI documents again and looks like I need to ask the " edX partner manager" for this. Please disregard this question.

Nate Aune

unread,
May 21, 2017, 8:11:56 PM5/21/17
to General Open edX discussion
The LTI consumer XBlock that ships with Open edX excludes many common LTI parameters. Apparently, this was done for student privacy reasons, but if you have a need for Open edX to send additional parameters and implement more of the LTI spec, there is an alternative LTI consumer XBlock that we've been using that works pretty well. A developer at Extension Engine built it and you can find it on Github here: https://github.com/hrvojevu/xblock-lti-consumer/

I'd love to see if these fixes can get incorporated back into the LTI consumer XBlock that ships with Open edX, but maybe make a "student privacy" conditional, so if you *don't* want to send all the attributes about the user to a 3rd party LTI provider, you could enable this limited set of attributes.

Nate

Robert Mundkowsky

unread,
May 21, 2017, 8:24:54 PM5/21/17
to edx-...@googlegroups.com
Wish I could use a better xBlock, but we are looking to deploy to edx.org. now that I think of it, I guess I can add a form to my LTI tool for user to send us  feedback if there are problems.

--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/57f5d55d-447d-49a2-9e0f-bdf687a49353%40googlegroups.com.

Colin Fredericks

unread,
May 22, 2017, 6:24:45 PM5/22/17
to General Open edX discussion
We have had success getting our partner manager to turn the "request e-mail" and "request username" settings on, so if you have good security on the other side of your LTI tool, that might be a good solution for you.
Reply all
Reply to author
Forward
0 new messages