LTI - what is expected to be returned?

41 views
Skip to first unread message

Robert M

unread,
Apr 30, 2017, 6:22:11 PM4/30/17
to General Open edX discussion
Hi, I'm trying to develop a LTI provider through Studio.

I am planning to use it "inline" in the unit.

What is expected to be returned from the LTI provider (e.g. full HTML page, fragment of an HTMLpage,...)?

Jill Vogel

unread,
May 1, 2017, 1:58:23 PM5/1/17
to edx-...@googlegroups.com
Hi Robert,

What is expected to be returned from the LTI provider (e.g. full HTML page, fragment of an HTMLpage,...)?

An LTI provider is basically a standalone website, that runs separately from edX.  It should display a full HTML page, which edX will iframe if your course connects to it in inline mode.

Here's a link to a workshop presentation we did at last year's Open edX conference about what LTI applications should provide, and how to write your own LTI, if you're interested:


There's links to sample code in there too.

Cheers,
--
Jill

Maarten de Waard

unread,
May 4, 2017, 11:03:42 AM5/4/17
to General Open edX discussion
I've had some success with this one:

https://github.com/mitodl/mit_lti_flask_sample

You might need some knowledge on running a flask server though

Robert Mundkowsky

unread,
May 6, 2017, 2:20:28 PM5/6/17
to edx-...@googlegroups.com
thanks this example is a lot easier to understand. Django will take more time for me to learn. This example answered my main question I had in my head which is LTI only helps with landing page, you have to manager the user's session, because there is no token passed around. I will try this library out, I am thinking Flask will be faster to use that Java.

--
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/7a82587b-a2c9-49fc-aad8-e25631b7e892%40googlegroups.com.

Robert M

unread,
May 12, 2017, 11:53:00 AM5/12/17
to General Open edX discussion
Well, mit_lti_flask_sample does not seem to work.  edx is sending a request to my Flask site, but getting an error that the "OAuth error: Please check your key and secret".

Also I don't understand why a pem key is referenced.  I think LTI only uses HMAC-SHA1 has using the secret?

Robert Mundkowsky

unread,
May 12, 2017, 4:06:10 PM5/12/17
to edx-...@googlegroups.com
Well, I am guessin url is getting changed by ssl off load and proxy name change, but still debugging.

--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.

Robert Mundkowsky

unread,
May 12, 2017, 7:42:08 PM5/12/17
to edx-...@googlegroups.com
Got it working, just need to over write flask_request.url to URL edx sees. Thanks all!
Reply all
Reply to author
Forward
0 new messages