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

Need some help with LTI 2.0 registration process

$
0
0

by Wallison de Oliveira.  

Hey guys, I'm developing a Java Tool Provider using LTI 2.0.

Using IMS LTI Tool Consumer emulator I can made my Tool Proxy pass the registration process with 201 code, but when trying it on Moodle or Canvas I can't.

 

I'm using this Vagrant Box with canvas: Vagrant box supersoftware/canvas-lms - Vagrant Cloud

And create a second Moodle vm using this tutorial: How to install Moodle 3.2 on Ubuntu 16.04 but it gave me 400 Bad Request when trying to get ToolConsumerProfile (the tc_profile_url is https://192.168.1.7/mod/lti/services.php/profile/?lti_version=LTI-2p0)


The first Moodle VM gives me 400 Bad Request when trying to post the tool proxy.

Canvas gives me 401 Unauthorized or 500 Internal Server Error

 

Canvas gives me 401 if I use this to get oauth_body_hash

public static String signBodyHash(String requestBody) throws NoSuchAlgorithmException, UnsupportedEncodingException {
        MessageDigest md = MessageDigest.getInstance("SHA1");
        byte[] output = Base64.encodeBase64(md.digest(requestBody.getBytes()));
        String bodyHash = new String(output);
        return URLEncoder.encode(bodyHash, "UTF-8");
 }

 

And 500 if I use this code:

    public static String signBodyHash(String requestBody) throws NoSuchAlgorithmException, UnsupportedEncodingException {
        MessageDigest md = MessageDigest.getInstance("SHA1");
        byte[] output = Base64.encodeBase64(md.digest(requestBody.getBytes()));
        String bodyHash = new String(output);
        return bodyHash;
  }

 

I attached the Tool Consumer Profile, the registration request parameters (reg_key and reg_password), Tool Proxy and the OAuth headers.

 

If someone could give some tip or clarify what I'm doing wrong I'll be very grateful!



Re: LTI Secret key - urgent request please

$
0
0

by Jon Bolton.  

In Site Admin > Plugins > Activities> Manage Activities, you will see a link for External Tool > Settings.

yourmoodle.com/admin/settings.php?section=modsettinglti

You’ll then be able to edit any existing tools and configure the shared secret.

About to send the same question again!! Should I?

$
0
0

by rkLearn ..  

Then, you say that I send the question again. What should I do when I do not get a reply?

Re: About to send the same question again!! Should I?

$
0
0

by Andrew Nicols.  

Hi rk,

You only asked this question 24 hours ago. The Moodle community are just that - a community of volunteers who help one another out.

Please be patient. If you cannot get the help you need, please contact a Moodle Partner who will be able to help you in a more timely fashion.

Best wishes,

Andrew

Re: A problem, issue and a query that will help.

$
0
0

by Andrew Nicols.  

The short answer is yes - you can use LTI to achieve this.

Please see the relevant Moodle docs for help on this functionality.

If you have further questions, I suggest that you make them more specific, and outline the steps you have tried, and the specific issues that you have encountered.

Integrating third-party content via plugin like LTI

$
0
0

by rkLearn ..  

Thanks. I know the process, I am not a newbie. You did not answer the full question. Could you please re-read it and answer the other parts of the question. Thanks

(Edited by Mary Cooch to clarify subject - original submission Wednesday, 24 January 2018, 12:18 AM)


Re: Integrating third-party content via plugin like LTI

$
0
0

by Mary Cooch.  

Hello RK. I have just changed the subject title of both your original posts to make them clearer for others to see and hopefully answer.

Re: Can AICC compliant courses be LTI'ed into our Moodle LMS?

$
0
0

by Mary Cooch.  

Hello RK. I have just changed the title of this post to make it clearer for others to see and be able to help you.


Enable LTI logs for debug

$
0
0

by Wallison de Oliveira.  

Hey guys, I'm developing a Tool Provider with LTI 2.0 and I'm stuck in Tool Proxy registration process (like I said in this discussion: https://moodle.org/mod/forum/discuss.php?d=364420).


I read in this discussion (https://moodle.org/mod/forum/discuss.php?d=333441) that Moodle can log LTI requests errors, like bad json format.

Is that true? If so, how can I do this? I tried some approaches but none gave me any error messages.


I'm using Moodle 3.4, installed following this tutorial (I changed from 3.2 to 3.4): https://websiteforstudents.com/installing-moodle-ubuntu-17-04-nginx-support/

I attached the config files from my nginx, php-fpm and moodle.

Re: How to write an authentication for an external tool (LTI tool provider side) ?

LTI does not work in embed mode. Works with new window

$
0
0

by Leslie Foster.  

I have setup 2 moodles to talk to each other using LTI (3.1 as provider and 3.4 as consumer).

If the LTI course is set to open in a new window (on the consumer), everything is good.  a new window launches with the course on the provider platform.

If I embed or embed without blocks, then the frame appears in the consumer moodle, but is always blank.  Frame embedding is switched on in both moodles.


Any assistance appreciated......


Les


Re: How to write an authentication for an external tool (LTI tool provider side) ?

$
0
0

by Benoît M.  

This lib is finally working, I wrote some doucmentation on this wiki.

Greetings,

ben

A problem, issue and a query that will help.

$
0
0

by rkLearn ..  

Hi,

Could we integrate third-party content via plugin like LTI or any other so that we can promote and feature our partners content and provide access to courses through our platform but all content remains on our partner's LMS? How to achieve this quickly?

Thanks

Moodle 3.4

LTI activity Grades no longer updating 3.1

$
0
0

by Shiv R.  

We've been using LTI to integrate a 3rd party assessment tool with our moodle. The 3rd party app is launched via a link on the course page, when complete a grade is sent back to moodle and stored in the grade book. This has been working preferably until a week ago. 


The app still launches but the grades do not update. The error "Message signature not valid" is returned. 


When trying the test tool http://lti.tools/test/tp.php , the grade doesn't return . We just get an error. 


This suddenly stopped working last Monday.  The assessment developer has not changed anything. The moodle host says the server and ip changed but nothing else. 


Any suggestions?  

Re: Open Source LTI Book Publishing Tool that can use H5P in content

$
0
0

by Ed Beck.  

Hey Chris, 

I'm asking you this question both as someone who is both interested in Pressbooks and Themer. 

I'm trying to use LTI to embed Pressbooks directly in Moodle. Here's a screenshot.



My issue is how short the LTI iframe window is. Would there be an easy way to make that LTI frame taller? By easy I mean, insert this custom CSS into the GUI?


Re: LTI Custom Parameters and Passing the Username

$
0
0

by bhavin patel.  

Hi all,

I want to send user -> country, user -> ethnicity (custom field) or object -> property to an LTI provider. 

I am able to send a static value by adding into custom parameter section of the external tool. But how can I have a dynamic value be passed through LTI?

I tried as below but no luck.

lis_person_country=$user->country

lis_person_country=$User->country

lis_person_country=$user.country

Your help will be much appreciated.

Thanks

Bhavin


common module settings - group mode

$
0
0

by Anna Gemmell.  

The external tool no longer appears to have the complete common module settings including group mode, groupings.

This is an important feature when using LTI to filter for groups e.g. Turnitin LTI. Is this feature no longer available or is there some other settings to include this option?


Re: New contrib: LTI Provider

Re: common module settings - group mode

$
0
0

by Randy Thornton.  


Hm, you are quite right. I don't see Groups here at all in any version since 2.9 up to current 3.4.

I suspect this absence is due to the potential collision of Moodle groups and LIS Groups, which are an LTI feature.

Support for LIS Group variables was added into 3.4 https://tracker.moodle.org/browse/MDL-55358 so that the course groups would pass over into groups on the provider app side, if it supported them and requested them.

So basically, if your LTI is configured to use groups in some way then it will send them; if not, it will not. The app decides this and there is probably some configuration setting for this or a url parameter to pass, or whatever.

I have not used a group aware LTI app yet but the issue to me would be how you designate which groups to use. Since a course may have many groups and groupings and users may be members of multiple groups which have no relation to what the LTI activity does, there would need to be a way to do that.

So, for Turnitin, you would need to ask them if they support groups at all and if so, how that is set up on your side.


You can still use the Groups/Groupings for the Access restrictions, but that is a different thing. Useful but different.



Moodle as LTI Provider to my SIS

$
0
0

by Ed Pina.  

Good afternoon all,

I'm utilizing an SIS as a consumer to my Moodle site.

I've published the activities within the individual classes as LTI Published tools and have received the consumer keys and launch URL's.

In the site admin menu, under authentication I have enabled external web services in order to allow for this.

When I enter the student portal(SIS), I click on a class and select an activity and a new window opens with our site address, the activity name and it repeats itself several times.

Has anyone else had issues publishing activities within classes to an external site?


Thanks


Ed

Viewing all 2848 articles
Browse latest View live


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