Quantcast
Channel: LTI and Moodle
Viewing all 2848 articles
Browse latest View live

LTI POST

$
0
0

by Keith C.  

Have just installed the most recent Moodle code and upgraded the database.  

None of my external tool assigments seem to be sending the data from the registered tool.

Can someone provide me a strategy to see the queries that are being sent from moodle?


Unable to get LTI content to display

$
0
0

by Bob Derezinski.  

I have 2 Moodle sites setup and I am trying to test the LTI functionality between them.


They are both running version 3.3.


In Provider site I have enabled the following:

·         Site Administration>Plugins>Authentication>Manage Authentication>Enable LTI

·         Site Administration>Plugins>Enrollments>Manage Enroll Plugins>Enable Publish as LTI Tool

Once enabled, in the LTI Provider site go to a course>Administration>Users>Enrollment Methods>Add Method>Select Publish as LTI Tool.

·         Enter a Custom Instance Name

·         Select the Tool to be Published (Entire course or a Lesson within the Course).  Choose Entire Course.

·         Under Remote System copy the Secret code.

·         Click Add Method – You are taken back to the Enrollment Methods screen that now displays your new Enrollment Method.

·         Go to Administration>Published as LTI Tools

·         Make a note of the launch details (cartridge URL and secret) or just the registration URL for the LTI Consumer site.

          You will need to give the LTI Consumer Site

In Consumer site:

·         Create or go to a course (Knowledge Hub Setup and Maintenance)>Add a lesson or if a lesson exists Add an Activity>Select External Tool as the Activity Type and click Add.

·         Name the Activity.

·         Preconfigured Tool defaults to Automatic, based on URL.  If I click Add, the screen that loads is blank, no error.

·         Enter the Tool URL, based on the info provided, this is the Cartridge URL from the Provider (Shown above)

·         Enter the Shared Secret

·         Login as a Student

·         Go to course and click on the LTI Activity.  (The course should load at this point, but I just get a blank screen without any error messages (see below)

Any clue as to why the content doesn't load?


 

 



LTI launch ever only shows .xml file

$
0
0

by Lexi K.  

Hi, I'm trying to get it to work that another site is set up as LTI consumer and Moodle as LTI provider. Setting up Moodle as LTI Provider is done as explained in the documentation. However when I try to login with a different site (I'm using http://lti.tools/test/tc.php for testing purposes) and click on "Launch TP" it only shows the .xml file. It looks the same if I enter the cartridge URL in the address bar of the browser, it will just show the content of the .xml file.

What's wrong? (Moodle version is 3.4)

Thanks for reading

Re: LTI launch ever only shows .xml file

$
0
0

by Lexi K.  

It does work from Moodle to Moodle. The problem seems to be that these xml cartridges (is that the right name?) are not supported by every LTI consumer, in my case this test website and Ilias, but Moodle requires them (at least for LTI version 1, which is the only option in my case). Found this here:

Re: upgrade to Moodle 3.1 LTI not showing results in GradeBook

$
0
0

by Shiv R.  

Havin the same issue. Did you find a solution? 

Students can enrol Learning Plans for himself

$
0
0

by Nilesh Pathade.  

Hi All,


Students can enrol Learning Plans for himself  ?? 


roles in LTI provider site

$
0
0

by tamara evans braun.  

Hi All, 


We have an LTI provider moodle site. Students click on LTI links in an external site to activities in our site and are thus enrolled via LTI as students on those activities. They become a student on our site at activity level. What we want is for these students to automatically get a student role on the course containing these activities. At the moment they do seem to get access to the course automatically but I don't quite know how it works as they do not have any role at all defined at course level.  


We want teachers who access the course via LTI to be teachers in the course but I'm assuming if we solve the student role assignment, we solve the teacher role assignment!

Anyone got any ideas? 

Re: LTI Custom Parameters and Passing the Username

$
0
0

by Carrie Bishop.  

Hi Bhavin, 

Did you ever get this to work?  I am trying to pass a numeric user ID that isn't present in the default LTI launch and I'm wondering if it will be possible via a dynamic value, as you're describing. thanks!

Carrie


Linkedin learning and lynda.com video embed into Moodle using LTI

$
0
0

by Steven Jiang.  

Hi everyone. 

Previously, we could embed the Lynda.com video into Moodle. I remember, at that moment, we paid Lynda so we could embed the videos from Lynda to our Moodle via LTI.


Since Linkedin purchase Lynda a couple of years ago, I am wondering if we can still embed the Linkedin Learning video to Moodle. I have checked that Moodle is not the Linkedin Learning partner. I guess it means that we cannot integrate Linkedin Learning video with Moodle, right? ( If misunderstanding, please let me know)

Our case is, we have linkedin Learning account but we don't have Lynda.com account. We are using Moodle as our LMS. What we want to achieve is to embed the Linkedin Learning video to our Moodle.


Can someone let me know how to do it? thanks

By the way, I have read the article that  linking lynda's account with Linkedin learning account but i don't think it means that we can embed the content from Linkedin, it just means that we can use these two learning platforms by using one account. 

Re: LTI authentication not working

$
0
0

by Chad Adams.  

Hello,

I'm running two moodle-3.4.2 bitnami installs on two separate windows boxes.  I've setup the two boxes per the instructions https://docs.moodle.org/34/en/Publish_as_LTI_tool  and following the 

  (based on 3.1).   I also added Mark's step 4 from the OP.

On the consumer side, after entering the url (http://10-pf0t5pgc/moodle/enrol/lti/cartridge.php/3/c209d245ff95820263d639e5f42b8c2c/cartridge.xml)

and secret from the provider side, and hitting either of the save buttons, I get a bad url error message and the consumer sides url is left empty upon reentering the configuration screen.


Any ideas why the url is seen as bad and not updating to the .../tool.php/... url?


LTI Source sub-plugin as activity

$
0
0

by Martin Rieva.  

Although new to both Moodle and PHP I have done an LTI Source sub-plugin with some moderate success. The sub-plugin registers as an activity using the get_shortcuts() hook and adds itself with a different type:

function ltisource_ecohub_get_shortcuts($defaultitem) {
global $OUTPUT;

$grouptitle = get_string('modulenameplural', 'mod_lti');
$type = 'ecohub';
$name = get_string('pluginname', 'ltisource_ecohub');

$item = new stdClass();
$item->title = get_string('activitytypetitle', '', (object)['activity' => $grouptitle, 'type' => $name]);
$item->type = 'lti&type=' . $type;
$item->name = $name;
$item->link = new moodle_url($defaultitem->link, array('type' => $type));
$item->help = get_string('pluginhelp', 'ltisource_ecohub');
// TODO: This simply doesn't work for some reason. Investigation ongoing.
$item->icon = $OUTPUT->image_icon('icon', '', 'ltisource_ecohub', array('class' => 'icon'));

$items = array($item);
return $items;
}
The idea is to add extra information to the LTI launch when using this activity, which is done in the before_launch() hook.

My problem is that I just want to modify the LTI launch when this activity is used and not when the parent/general LTI activity is used. In the before_launch() hook I cannot detect if the launch is initiated by my sub-plugin or the External Tools LTI activity, which I hoped could be done by checking the type provided in the code above.

Is there another way to detect this?

I am using Moodle 3.3 and the full sub-plugin code can be found here: https://bitbucket.org/laerdalmedical/moodle-ltisource-ecohub/src

Bonus question:
The observant reader will note the TODO in the above code. The icon is shown correctly during plugin update, but in the Activities form it is replaced with the LTI icon. Howcome?

Any help is much appreciated!

Ang: LTI Source sub-plugin as activity

Re: LTI Source sub-plugin as activity

$
0
0

by Helen Foster.  

Hi Martin,

Sorry I can't answer your question, however I have moved your post to the LTI and Moodle forum where you'll hopefully receive help.

Unable to get LTI content to display

$
0
0

by Bob Derezinski.  

I have 2 Moodle sites setup and I am trying to test the LTI functionality between them.


They are both running version 3.3.


In Provider site I have enabled the following:

·         Site Administration>Plugins>Authentication>Manage Authentication>Enable LTI

·         Site Administration>Plugins>Enrollments>Manage Enroll Plugins>Enable Publish as LTI Tool

Once enabled, in the LTI Provider site go to a course>Administration>Users>Enrollment Methods>Add Method>Select Publish as LTI Tool.

·         Enter a Custom Instance Name

·         Select the Tool to be Published (Entire course or a Lesson within the Course).  Choose Entire Course.

·         Under Remote System copy the Secret code.

·         Click Add Method – You are taken back to the Enrollment Methods screen that now displays your new Enrollment Method.

·         Go to Administration>Published as LTI Tools

·         Make a note of the launch details (cartridge URL and secret) or just the registration URL for the LTI Consumer site.

          You will need to give the LTI Consumer Site

In Consumer site:

·         Create or go to a course (Knowledge Hub Setup and Maintenance)>Add a lesson or if a lesson exists Add an Activity>Select External Tool as the Activity Type and click Add.

·         Name the Activity.

·         Preconfigured Tool defaults to Automatic, based on URL.  If I click Add, the screen that loads is blank, no error.

·         Enter the Tool URL, based on the info provided, this is the Cartridge URL from the Provider (Shown above)

·         Enter the Shared Secret

·         Login as a Student

·         Go to course and click on the LTI Activity.  (The course should load at this point, but I just get a blank screen without any error messages (see below)

Any clue as to why the content doesn't load?


 

 



LTI launch ever only shows .xml file

$
0
0

by Lexi K.  

Hi, I'm trying to get it to work that another site is set up as LTI consumer and Moodle as LTI provider. Setting up Moodle as LTI Provider is done as explained in the documentation. However when I try to login with a different site (I'm using http://lti.tools/test/tc.php for testing purposes) and click on "Launch TP" it only shows the .xml file. It looks the same if I enter the cartridge URL in the address bar of the browser, it will just show the content of the .xml file.

What's wrong? (Moodle version is 3.4)

Thanks for reading

Who wants to help me finish this OER publishing and distribution tool for Moodle?

$
0
0

by Chris Kenniburg.  

Hello All,

I am wondering if anyone wants to take a shot at figuring out how to make this work.  

The functionality we want is from Moodle you can add an External tool that automatically creates a new blog and then allows users from the course to access and publish to the Wordpress blog. We also want to be able to take that blog and use deep LTI linking to export the contents as a cartridge which can be used by Moodle to embed the pages from the blog in a course. The idea is to use the Wordpress PressBooks book authoring plugin with Moodle to produce OER content and distribution in one site.  

The issue is that I cannot find a LTI plugin that handles both functions: creation and distribution.  

On one hand the users need to be registered as authors/admins with wordpress during content creation.  During distribution, users need to be registered as subscribers when they are just viewing the blog during distribution.  I was hoping that based on the LTI credentials we could differentiate what wordpress role the user gets in wordpress.  I am not having much luck.

This works great for users to go from Moodle to Wordpress and auto-create a blog and add users of a course as authors on Wordpress.

However, once the book is created we want to use it to embed as OER content in other courses.  Meaning, you export the wordpress content as a LMS Cartridge For that functionality there is a set of 3 Wordpress plugins by Candela which also uses LTI - LTI, Candela-LTI, and Candela-thin-exports.  The issue is the two LTI plugins do not play nicely on the same Wordpress site.  

Tools used:


Anyone want to help build a open source OER creation and distribution tool with me?  

I just need help figuring out how to either get both LTI plugins working on the same site or combine the functionality of these two plugins into one.

This would be an all-in-one OER content authoring platform that works and plays well with Moodle for both creation and distribution.  

Re: LTI authentication not working

$
0
0

by Tansu PANCAR.  

Hello John,

I am trying to use Moodle as both consumer and provider with LTI.

Both Moodle have version 3.3.5. 

The authentication seems to be Ok and I can see the title of the content I am sharing from the provider.

However, I keep getting below messages, which says some image files can not be retrieved from the provider.

Same result when I use below links, authentication is ok but image files can not be reached.

What I see in the window to display external content:

testlti

 INTRODUCTION The Mathematics Level 1 Subject Test assesses the knowledge you’ve gained from three years of college-preparatory mathematics, including two years of algebra and one year of geometry. If you’ve excelled in these courses, taking the test can support your high school grades, indicate an interest in pursuing math-based programs of study (science, technology, engineering, economics, etc.), and help you differentiate yourself in the admission process.

https://XX.YYY.ZZ.XXX/theme/image.php/boost/theme/1525681569/favicon

https://XX.YYY.ZZ.XXX/theme/image.php/boost/theme/1525681569/favicon 

https://XX.YYY.ZZ.XXX/enrol/lti/tool.php?id=9

https://XX.YYY.ZZ.XXX/enrol/lti/tool.phpid=9 

https://XX.YYY.ZZ.XXX/theme/image.php/boost/theme/1525681569/favicon

https://XX.YYY.ZZ.XXX/theme/image.php/boost/theme/1525681569/favicon 


I just deleted the IP address.

Requests to Moodle's Outcome Service failing

$
0
0

от Pablo Garcia de los Salmones.  

Hello, everyone;

I am currently developing a quiz game to work as an external tool within Moodle. I am following the IMS LTI specification and using OAuth for authentication, as it requires.

I recently managed to authenticate the launch POST request from Moodle, and am now trying to send grades back to Moodle from my tool by using LTI Basic Outcome Service.

Here is where I have encountered a problem: I build POX messages, sign the request, and send it, but for some reason they are succeeding just once every several attempts (30% of the time, more or less). For the rest of them, Moodle responds with a failure POX message that includes "Message signature not valid" as its description.

Obviously, I want to trust my requests will succeed whenever I need them to.

Any ideas on the reason this could be happening? Any suggestions on how to find out?

Thank you all in advance for your help!

For illustration purposes, I show you here below an example of a successful request and a failed one, along with each one's Base String (the one signed with the OAuth protocol):


##################################

##########Successful request###########

##################################


Body hash :

hPssgohenJEvtKta2so7Y27p3kU=


Base String (line breaks are for display purposes only) :

POST&http%3A%2F%2F127.0.0.1%2Fmoodle%2Fmod%2Flti%2Fservice.php&oauth_body_hash%3DhPssgohenJEvtKta2so7Y27p3kU%253D

%26oauth_callback%3Dabout%253Ablank%26oauth_consumer_key%3Dkey%26oauth_nonce%3D63cc0764c4cc4701abe28fa5fd406378

%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1525940779%26oauth_version%3D1.0


Body:

<?xml version="1.0" encoding="UTF-8"?>

<imsx_POXEnvelopeResponse xmlns="http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0">

    <imsx_POXHeader>

        <imsx_POXResponseHeaderInfo>

            <imsx_version>V1.0</imsx_version>

            <imsx_messageIdentifier>1602471533</imsx_messageIdentifier>

            <imsx_statusInfo>

                <imsx_codeMajor>success</imsx_codeMajor>

                <imsx_severity>status</imsx_severity>

                <imsx_description>Result read</imsx_description>

                <imsx_messageRefIdentifier>961216995</imsx_messageRefIdentifier>

                <imsx_operationRefIdentifier>readResultRequest</imsx_operationRefIdentifier>

            </imsx_statusInfo>

        </imsx_POXResponseHeaderInfo>

    </imsx_POXHeader>

    <imsx_POXBody>

        <readResultResponse>

            <result>

                <resultScore>

                    <language>en</language>

                    <textString>0.5</textString>

                </resultScore>

            </result>

        </readResultResponse>

    </imsx_POXBody>

</imsx_POXEnvelopeResponse>


###############################

##########Failed request###########

###############################


Body hash = YLigJE+8wr7rCwOITqdc1IP3zFs=


Base String :

POST&http%3A%2F%2F127.0.0.1%2Fmoodle%2Fmod%2Flti%2Fservice.php&oauth_body_hash%3DYLigJE%252B8wr7rCwOITqdc1IP3zFs%253D

%26oauth_callback%3Dabout%253Ablank%26oauth_consumer_key%3Dkey%26oauth_nonce%3D6de4380ce2ab4d9a90e3fe1723dc5141

%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1525940816%26oauth_version%3D1.0


<?xml version="1.0" encoding="UTF-8"?>

<imsx_POXEnvelopeResponse xmlns="http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0">

    <imsx_POXHeader>

        <imsx_POXResponseHeaderInfo>

            <imsx_version>V1.0</imsx_version>

            <imsx_messageIdentifier>1688463600</imsx_messageIdentifier>

            <imsx_statusInfo>

                <imsx_codeMajor>failure</imsx_codeMajor>

                <imsx_severity>status</verity>

                <imsx_description>Message signature not valid</imsx_description>

                <imsx_messageRefIdentifier/>

                <imsx_operationRefIdentifier>unknownRequest</imsx_operationRefIdentifier>

            </imsx_statusInfo>

        </imsx_POXResponseHeaderInfo>

    </imsx_POXHeader>

    <imsx_POXBody>

        <unknownResponse/>

    </imsx_POXBody>

</imsx_POXEnvelopeResponse>


Integration of Khan academy in moodle using LTI

$
0
0
by Gopal Sharma.  

Hello Everyone,

I wanted to integrated course and lesson from Khan Academy into my moodle site.

Where I want that score or grade should be given to me in my moodle site for watching videos(just like energy point in Khan Academy) and for accessing course material etc. I also want that same energy point to be credited to my Khan Academy account.

I'm using Moodle 3.4.3+ (Build: 20180524)

So far I'm able to get the content into my moodle site all thanks to this post and users participating in that thread.

Settings are:

Tool Name: KhanAcad  // anything you want you can set

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

Consumer key (copied from Ken's post above): sossiglti  // you can generate yours an use as I did

Shared Secret: (copied from Ken's post above): sossiglti // you can generate yours an use as I did


Anyone has encountered similar kind of requirement or help guide me in some direction.
Is that even possible or not?




Show quiz navigation block - Moodle as LTI provide

$
0
0
by Benjamin Norris.  

I am using Moodle 3.4 as a LTI provider for my course in our institution's Canvas implementation. 

So that each Moodle quiz shows up as its own gradebook item, I am creating individual publish as LTI provider enrollment methods for each quiz. This generally work fine, but the default behavior when the LTI tool launches in Canvas is to hide all of the Moodle blocks. I want to show my students the quiz navigation block so that they can see the timer for timed quizzes. With this block hidden, the timer is also hidden,

I figure I can force this block to be shown with a custom parameter, but I do not know which one to pass.

I'll settle for a comprehensive list of custom parameters I can pass back to Moodle from Canvas. 

Thanks.

Viewing all 2848 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>