Accessing Khan Academy via LTI

Accessing Khan Academy via LTI

by Brian Mulligan -
Number of replies: 12

I've just successfully integrated Prulu and Piazza discussion systems into our Moodle instance very easily as they supplied the URL, consumer key and shared secret.  Does anyone know how I get this information from Khan Academy?  I can't find anything on their site.

Thanks.

Brian

Average of ratings: -
In reply to Brian Mulligan

Re: Accessing Khan Academy via LTI

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Hello Brian. Sorry, I just tried this and I failed too. I would like to know how this is done as well. Do you have to email a contact and ask for a  key?

In reply to Brian Mulligan

Re: Accessing Khan Academy via LTI

by Ken Task -
Picture of Particularly helpful Moodlers

Been exploring the use of LTI as well.  Interesting and something to be pursued, IMHO!

Found a resource worth the time:

https://lti-examples.heroku.com/

KhanAcademy
Search for and embed Khan Academy lessons and exercise into course material. Khan Academy focuses on short lessons on math, science, etc. Uses the embedded player so students earn points for watching videos.

Config URL: https://lti-examples.heroku.com/tools/khan_academy/config.xml

any key and secret will work for this app.  In other words, invent your own.  For the working example below used: sossiglti for the key and the secret.


Have one working example of a Khan Academy video at:
http://sos.tcea.org/ltimoodle/course/view.php?id=4
Guest access is allowed.

A couple of other examples as well.

'spirit of sharing', Ken

 

Average of ratings: Useful (1)
In reply to Ken Task

Re: Accessing Khan Academy via LTI

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Hi Ken. I was working through those heroku examples myself trying to find good demos. I couldn't get the Khan academy one to work with that URL but I'll try again and if I don't , I will post back. Thanks smile

In reply to Mary Cooch

Re: Accessing Khan Academy via LTI

by Ken Task -
Picture of Particularly helpful Moodlers

Here's my External Tool Config

Tool Name: KhanAcad
Tool Base URL: https://lti-examples.heroku.com/tools/khan_academy/config.xml
Consumer Key: sossiglti (one of your own invention)
Shared Secret: sossiglti (one of your own invention)

Launch URL:
https://lti-examples.heroku.com/tool_redirect?url=%2Fkhan.html
Secure Launch URL:
same

That will open a frame where one is browsing categories and videos available.  Teacher does this … not the student.

Once one drills down to a video and one selects it, you will get a notice that from this time forward, anyone selecting the link you started to build will get the video … and then it shows the URL to that video you selected.

Once you return to your course, click the link just built and you'll see the video you had selected.

At first, one might have to use the .xml link above to find the tool_redirect?url ... hard to guess those.  When the error page shows you copy the redirect link, go back to editing your tool and use the re-direct link in the Launch/Secure Launch URL.

Yeah, I know that's not very intuitive and it's strange, but ....

'spirit of sharing', Ken

 

Average of ratings: Useful (3)
In reply to Ken Task

Re: Accessing Khan Academy via LTI

by Vernon Spain -
Picture of Plugin developers Picture of Testers

This was a great tool ... Have they disabled it.. I cant seem to get it working.. Still going for you?


Cheers.

In reply to Vernon Spain

Re: Accessing Khan Academy via LTI

by Stephen Vickers -

Unless you are using Canvas there is no need to use the LTI tool to access this site - there is no LTI launch across to Khan Academy.  Just try pointing your browser to https://www.edu-apps.org/lti_public_resources/?tool_id=khan_academy to see the interface.

In reply to Stephen Vickers

Re: Accessing Khan Academy via LTI

by Vernon Spain -
Picture of Plugin developers Picture of Testers

Thanks Stephen,

I seem to be missing something here though. I get the main page but it no longer saves the navigated to page, just the main page even if I insert the full path. 

I just get the message "You're not in a system that supports auto-inserting content, so you'll need to copy and past the following code by hand in order to insert it into your content."

I set it up a year or so ago and cant find my own example.


Any suggestions?

In reply to Vernon Spain

Re: Accessing Khan Academy via LTI

by Stephen Vickers -

I don't know what you mean by "it no longer saves the navigated to page".  Since this is just a normal hyperlink I don't think there will be any sense in which it will remember where you were last.  However, you can set the hyperlink to point directly to a page of interest; e.g. https://www.edu-apps.org/lti_public_resources/?tool_id=khan_academy#/khan_academy/browse/root.new-and-noteworthy

Unless you have connected via Canvas there is no way of automatically returning a link to the selected resource and add it to a page in Moodle.  Instead the page gives you options for copying and pasting the URL to the resource or HTML to use to embed it within a page.

In reply to Stephen Vickers

Re: Accessing Khan Academy via LTI

by Vernon Spain -
Picture of Plugin developers Picture of Testers

I found the setup that I was looking for and it still works... Too many dev sites blush

I think this was Ken's original setup??


Settings are:

Tool Name: KhanAcad

Tool Base URL: https://www.edu-apps.org/tool_redirect?id=khan_academy

Consumer key (copied from Ken's post above): sossiglti

Shared Secret: (copied from Ken's post above): sossiglti

Make sure that "Show tool type when creating tool instances"  is checked.


When you create the tool in a course page you are offered all the directories and when you navigate to the one you want it "saves the navigated to page" and then that's where the students are directed to when they access the resource.

Cheers,





Average of ratings: Useful (1)
In reply to Vernon Spain

Re: Accessing Khan Academy via LTI

by Ken Task -
Picture of Particularly helpful Moodlers

Too many dev sites .... yeah, I know! sad

http://sos.tcea.org/ltimoodle/mod/page/view.php?id=119

The above might help explain a little more but basically, there are some LTI resources that do not really require a consumer key or shared secret, but Moodle is looking for them.

Noticed just now in check things on ltimoodle, certificate issue with some of the links.   That could be an expired CA cert, I hope.  Otherwise, there's a serious problem given the state of https (ssl/tls/etc) today.

'spirit of sharing', Ken