LTI authentication not working

LTI authentication not working

by Mark Berthelemy -
Number of replies: 52

Hi all,

I am running two Moodle 3.2 sites locally.

One is setup as an LTI provider, and the other as an LTI consumer.

Steps to replicate:

  • In LTI Provider:
    1. Enable LTI authentication plugin
    2. Enable Publish as LTI tool
    3. Allow frame embedding = On
    4. Web services: On (this isn't in the docs, but seemed to fix an error where the web service couldn't be found)
    5. Create a course
    6. Add a SCORM activity to the course
    7. Set the SCORM activity so that students do not see the course structure screen, and display = embedded
    8. Add Publish as an LTI tool enrolment method
    9. Set enrolment method settings: tool to be published, secret key, user synchronization = No
  • In LTI Consumer:
  1. Create a course
  2. Add External tool activity
  3. Configure activity with the URL of the SCORM package in the Provider, secret key, consumer key and display = embedded
  4. Enrol test.user in course
  5. Login as test.user
  6. Access the External tool within the course

Expected behaviour:

  • The SCORM package should display in an iframe with no headers or footers from the Provider site
  • The Provider should list test.user as an enrolled user in the provided course

Actual behaviour:

  • If not already logged into Provider site, the login page displays in the iframe on the Consumer site
  • No new users are registered or enrolled on the Provider site

Is this a bug, or have I missed something during the configuration process?

Thanks,

Mark

Average of ratings: Useful (1)
In reply to Mark Berthelemy

Re: LTI authentication not working

by Mark Berthelemy -

[UPDATE]

Still no success in registering users or logging in via LTI.

I have tried with two LTI Providers (one Moodle 3.2 hosted locally, and the other Moodle 3.1 hosted on AWS).

Both take the test user to the Provider's login screen within the iframe.

Is there any reason why my LTI Consumer (hosted locally using MAMP) isn't passing the right data to the Provider?

I have tracked the POST call using Postman Interceptor, and it looks like the following data is being sent out from the Consumer:

context_id:2

context_label:Test Course

context_title:Test Course

context_type:CourseSection

ext_lms:moodle-2

ext_user_username:test.user

launch_presentation_document_target:iframe

launch_presentation_locale:en

launch_presentation_return_url:http://moodle.localhost:8888/mod/lti/return.php?course=2&launch_container=3&instanceid=3&sesskey=iK3smesYJV

lis_course_section_sourcedid:

lis_outcome_service_url:http://moodle.localhost:8888/mod/lti/service.php

lis_person_contact_email_primary:######@#####

lis_person_name_family:User

lis_person_name_full:Test User

lis_person_name_given:Test

lis_person_sourcedid:

lis_result_sourcedid:{"data":{"instanceid":"3","userid":"3","typeid":"4","launchid":535072775},"hash":"16ddd1727f6ce4c2cb76303abd7b3cf9af45f5a18f4e2ff0f430c0591b7bb5fc"}

lti_message_type:basic-lti-launch-request

lti_version:LTI-1p0

oauth_callback:about:blank

oauth_consumer_key:abc

oauth_nonce:#############

oauth_signature:#############

oauth_signature_method:HMAC-SHA1

oauth_timestamp:1484667680

oauth_version:1.0

resource_link_description:

resource_link_id:3

resource_link_title:SCORM on Provider site

roles:Learner

tool_consumer_info_product_family_code:moodle

tool_consumer_info_version:2016120501.01

tool_consumer_instance_description:Moodle dev / testing site

tool_consumer_instance_guid:moodle.localhost

tool_consumer_instance_name:Moodle Dev

user_id:3


Any help very gratefully received!

Thanks,

Mark

In reply to Mark Berthelemy

Re: LTI authentication not working

by John Okely -

Hi Mark, sorry you are encountering some problems.

What launch URL did you paste into your consumer? You must use the URL given by the table on the "Publish as an LTI tool" page. It should be enrol/lti/tool.php?tool=X

In reply to John Okely

Re: LTI authentication not working

by John Okely -

Correction, on your 3.1 instance it should have enrol/lti/tool.php?tool=X, but on your 3.2 instance it should give enrol/lti/cartridge.php/X/YYYYYYYYYYYYYYY/cartridge.xml. Which will then be loaded by moodle and when you edit your instance again it should give the tool URL

Average of ratings: Useful (2)
In reply to John Okely

Re: LTI authentication not working

by Mark Berthelemy -

Hi John,

Ah. That's working now.

It wasn't at all obvious that there is a separate page hidden away containing all URL to use.

I've amended the documentation appropriately.

Thanks for your help. It's obvious when you know how smile

Mark


In reply to Mark Berthelemy

Re: LTI authentication not working

by John Okely -

Glad I could help. And thanks for thinking of improving the docs too, every little bit helps smile

In reply to John Okely

Re: LTI authentication not working

by Killian Holmes -

Hi 

Similar issue to Mark. Login credentials not being passed between a provider Moodle and consumer Moodle. All configuration steps have been followed. 

Some details:

Provider 

HTTPS Moodle 3.2 on Moodle Cloud 

Consumer (Attempt 1)

HTTP Moodle 3.2 Moodle on Amazon AWS  

  1. Cartridge URL: https://domain.com/enrol/lti/cartridge.php/1/93b8cdfce80858e450d6046ca326570c/cartridge.xml 
    1. After Saving it is changed to: https://domain.com/enrol/lti/tool.php?id=1
    2. User sees this error "A required parameter (oauth_consumer_key) was missing"
    3. Using: https://www.domain.com/enrol/lti/tool.php?id=1 
    4. User is brought to the provider login page
  2.  Using: https://domain.com/enrol/lti/proxy.php/1/ab2261b3fc7ab001ae495def3b0f3564/
    1. User sees: Invalid request message 
    2. Using: https://www.domain.com/enrol/lti/proxy.php/1/ab2261b3fc7ab001ae495def3b0f3564/ 
    3. User is brought to the provider login page

Consumer (Attempt 2)

HTTPS Moodle 3.0 

  1. Using: https://domain.com/enrol/lti/proxy.php/1/ab2261b3fc7ab001ae495def3b0f3564/
    1. User sees: Invalid request message 
    2. Using: https://www.domain.com/enrol/lti/proxy.php/1/ab2261b3fc7ab001ae495def3b0f3564/ 
    3. User is brought to the provider login page

Any insight appreciated.

Thanks

Killian

In reply to Killian Holmes

Re: LTI authentication not working

by Killian Holmes -

An update on this.

Once I added the activity as an actual LTI tool, then it worked.


In reply to Mark Berthelemy

Re: LTI authentication not working

by philipp lesmana -

Hi, 

I am having the same issue. The Tool URL given to me is : http://somedomain.com/enrol/lti/cartridge.php/2/0e7355f72a20fdd93d690a8398438676/cartridge.xml

It loads the moodle site Login page...without actually logging in and enrolling the LTI user. 



In reply to philipp lesmana

Re: LTI authentication not working

by John Okely -

That URL looks right. But when you paste that in and save the instance, and edit it again, what URL is shown?

In reply to John Okely

Re: LTI authentication not working

by philipp lesmana -

Hi John, 


Initially I did not understand your question because when I paste the URL in SAKAI, and edit it again, the same URL that I pasted shows up.


However, I then pasted the URL into Moodle, and when I edit it again, I get : http://somedomain.com/enrol/lti/tool.php?id=2

Also, next to the URL it now shows : Tool configuration not found for this URL. (this wasn't here initially)


When i use the new URL in SAKAI, I get the following error message : 

"External tool has finished with an error: Debug error: A tool consumer GUID must be included in the launch request."


In reply to philipp lesmana

Re: LTI authentication not working

by John Okely -

Ah yes, it might be the case that SAKAI doesn't support XML cartridges. So you can copy the launch URL directly out of the cartridge XML to avoid having to use Moodle in between. There's a small chance that this may work: https://confluence.sakaiproject.org/display/~markjnorton/A+Common+Cartridge+Installer+using+OKI+OSIDs

But in any case, it seems that unfortunately SAKAI does not send the tool_consumer_instance_guid parameter which is a recommended (But not required) parameter. I'm assuming there's no way to fix this in SAKAI's interface?

The PHP LTI provider library Moodle uses requires this parameter. Which is a mistake, so I will create issues to fix this. Sorry that there is no immediate solutions (unless there's a way to add something to your site or LTI configuration to ensure SAKAI sends a tool consumer GUID. Things like site short name or site ID, activity short name or activity ID may help. But I'm only guessing as I haven't worked directly with SAKAI.

In reply to John Okely

Re: LTI authentication not working

by John Okely -

Here are the issues you can watch and vote on to help them get fixed faster

https://tracker.moodle.org/browse/MDL-57741 No simple way to use LTI launch without cartridge support

https://tracker.moodle.org/browse/MDL-57742 tool_consumer_instance_guid is required when it should be optional

https://github.com/IMSGlobal/LTI-Tool-Provider-Library-PHP/issues/19
Average of ratings: Useful (2)
In reply to John Okely

Re: LTI authentication not working

by philipp lesmana -

Hi John!


Thanks for creating these for me. We are using Sakai 10. While I am an admin of our moodle site, unfortunately the Sakai site is owned by a different group, and thus we have no say in its installation/modifications. 

Nevertheless, we intend to be able to use our Moodle site with partner institutions that may or may not be using different versions of external options such as LTI, canvas, etc, so i think it would be beneficial if the issue is fixed so that Moodle LTI is compatible with other external systems right out of the box without involving other institutions IT. 


Thanks again,

Phil

In reply to philipp lesmana

Re: LTI authentication not working

by Diego Romero Armijos -

Greetings, my friends, please consult me ​​as I can return the qualification from my lTI external keyboard to moodle system, which I should send your kind help
In reply to John Okely

Re: LTI authentication not working

by Paul Tosney -

Thanks for those John, I voted for them.

Similar issues here too with LTI1. 

Trying to display a Moodle course inside Haiku (a small LMS). Got the launch url from inside the xml file but when I click on the link in Haiku it launches another instance of Haiku...not of the Moodle course. sad

I'm guessing that this is because Moodle insists on getting tool_consumer_instance_guid when it's apparently up for debate on whether it is optional or not in the LTI specs?

In reply to Paul Tosney

Re: LTI authentication not working

by John Okely -

That seems odd, I am not sure whether it's the same guid issue. Are you able to turn on debugging mode or check the Haiku logs to get more detail? Or share your settings here (blanking out the secret of course)


What consumer key did you use?

In reply to Paul Tosney

Re: LTI authentication not working

by Doug Loomer -

Did you ever resolve this issue Paul and John? I have basically the same issue when trying to use Moodle 3.5.1+ as an LTI server and PowerSchool Learning (formerly Haiku) as a client.

In reply to Mark Berthelemy

Re: LTI authentication not working

by Reid Proctor -

I am having this issue occur sporadically. I have Moodle setup as the LTI provider to a Canvas instance. Out of about 150 students connecting simultaneously about 8 of them were redirected to the Moodle login page. For the rest, the LTI connection seemed to work perfectly. Is the LTI connection sensitive to the web browser type or settings?

Any ideas?

Thanks,

Reid 

In reply to Reid Proctor

Re: LTI authentication not working

by John Okely -

If you can take a look at the moodle logs and server logs around the time of the problematic login maybe we can see what might be the cause.

Unless it's a very old browser LTI should work fine.

Are both your Moodle and your Canvas https?

In reply to John Okely

Re: LTI authentication not working

by Paul Raper -

I have set up my own Moodle as a provider and entered all the information as requested. In the consumer site I enter the required information, but, if I don't enter a consumer key, I get the error below, but the link takes me to the platform generally, if I do enter a consumer key, the link doesn't work.


Any thoughts on this would be appreciated.

Attachment 2017-08-22 10_02_47-Error - Nightly.png
In reply to Paul Raper

Re: LTI authentication not working

by John Okely -

The consumer key is required, so we'll need to try fixing the problem when the consumer key is set. What do you mean by "the link doesn't work"?

Average of ratings: Useful (1)
In reply to John Okely

Re: LTI authentication not working

by Paul Raper -

Dear John,

The link doesn't work, see image below. Where do you need to enter the Consumer key? According to the Video posted on the Moodle.org site, the consumer key can be anything, but elsewhere I read that the consumer key is an important part of the process.

On the provider site, in a given course I have the "Published as LTI course" option available, and have entered all the details given there into my consumer course.

Attachment 2017-08-22 10_03_59-WS(2) - Nightly.png
In reply to John Okely

Re: LTI authentication not working

by Paul Raper -

Hi John,

I've been trying out some different settings, and one thing I've found is that when not using the pre-configured tool setting, I receive a different error.

I get transfered to the provider Moodle in the end, but not logged in to the course nor the actual system, dumped on the doorstep so to speak, which is not ideal.

Paul

Attachment 2017-08-23 10_54_03-Error - Nightly.png
In reply to Paul Raper

Re: LTI authentication not working

by John Okely -

Are you able to try using the test provider in canvas

http://lti.tools/test/tp.php

And test the test consumer against moodle

http://lti.tools/test/tc.php

If they are also broken it may help us diagnose the problem

Average of ratings: Useful (1)
In reply to John Okely

Re: LTI authentication not working

by Paul Raper -

Hi John,

I received the following from both links:

Attachment 2017-08-24 09_33_24-WS(2)_ Test and 7 more pages ‎- Microsoft Edge.png
In reply to Paul Raper

Re: LTI authentication not working

by John Okely -

I'm guessing this is on a site with SSL (great!) So you can use these urls instead.

https://lti.tools/test/tc.php

https://lti.tools/test/tp.php

Average of ratings: Useful (1)
In reply to John Okely

Re: LTI authentication not working

by Paul Raper -

Hi John,

Ok, so that works, and what it means is that it is not possible for a provider that is not using an SSL connection to connect to a consumer that is. That makes sense in a way and means that I have to set my Moodle provider site up on an SSL connection.

I'll do that and keep you in the frame on the outcome.

Many thanks for the input, this has helped tremendously, and by the way, should the documentation be amended to state this, or am I jumping the gun here?

Very best,

Paul

Attachment 2017-08-25 07_44_42-WS(2)_ Test and 13 more pages ‎- Microsoft Edge.png
In reply to Paul Raper

Re: LTI authentication not working

by John Okely -

I've now added some info, good point!

Average of ratings: Useful (1)
In reply to John Okely

Re: LTI authentication not working

by Paul Raper -

So John,

I have encrypted my site, but guess what, it still gives me an error.

My Supplier site is now running on a secure https:// path so that should no longer be an issue.

This is causing me to loose my hair. mixed

Attachment 2017-08-28 15_26_51-WS(2) - Nightly.png
In reply to John Okely

Re: LTI authentication not working

by Paul Raper -

John,

I notice that in your LTI Consumer key you have: jisc.ac.uk. Is this a specific key, or can this be anything?

Regards,

Paul

In reply to John Okely

Re: LTI authentication not working

by Paul Raper -

My settings are as follows, is there anything there that you can see that looks wrong?

Attachment 2017-08-28 17_16_08-Editing External tool and 3 more pages ‎- Microsoft Edge.png
In reply to Paul Raper

Re: LTI authentication not working

by Paul Raper -

Settings at the other end are:

Attachment 2017-08-28 17_19_17-Course_ English 3 - E3 (HS2018)-PR and 3 more pages ‎- Microsoft Edge.png
In reply to Paul Raper

Re: LTI authentication not working

by Paul Raper -

As a final thought here: are there a set of prerequisites to setting up LTI to work?

What I'm thinking here is that in the documents it tells you to activate various options to turn on LTI, but do you for example need to have XML_RPC running?

With my site for example, on the face of things everything looks to be correctly configured, but there must be something that is not working and I really can not see what it can be.

In reply to Paul Raper

Re: LTI authentication not working

by John Okely -

XML_RPC is not required for LTI.

All the prerequisites should be in the documentation. The settings you've shown all look correct.

Been flat out with the current work at HQ so haven't had much time to look into this in more detail. Server logs etc may be the next way to help diagnose.

In reply to John Okely

Re: LTI authentication not working

by Paul Raper -

Hi John,

That is really interesting. I have just switched my PHP handler on the server and activated XML_RPC, and it works.

Hmmm. smile

The only thing that happens in between clicking on the link in the consumer Moodler, and the course opening in the Provider Moodle is the dialogue below.

Attachment 2017-09-01 10_32_12-Open tool - Nightly.png
In reply to Paul Raper

Re: LTI authentication not working

by Margaret Phelan -

Hello,

We seem to be experiencing a similar issue here. We are running Moodle 3.3. We are attempting to use our Moodle site as Producer and an external Sakai (version 11.4) site as consumer.

As per the instructions here: https://docs.moodle.org/33/en/Publish_as_LTI_tool we have enabled LTI authentication and the 'Publish as LTI tool' enrolment plug-in on the Moodle producer site. Frame embedding is allowed. The 'Publish as LTI tool' has been configured as an enrolment method in a Moodle course. We have supplied the cartridge URL and secret to the Sakai consumer.

We have web services and XML_RPC enabled on the Moodle site. We are using SSL connections on both sites.

When we used the Cartidge URL or the Registration URL we received an 'Invalid request' error.

Shortening the cartridge URL to a URL ending in '/enrol/lti/tool.php?id=5' resulted in the following error in Sakai: 'External tool has finished with an error. Sorry, there was an error connecting you to the application.' 

If anyone has managed to successfully provide LTI from Moodle 3.2+ to a Sakai consumer, any troubleshooting tips and advice would be appreciated.

Thanks,

Mags

In reply to Margaret Phelan

Re: LTI authentication not working

by Paul Raper -

Did you try John's test items higher up the post?

First:

Are you able to try using the test provider in canvas

http://lti.tools/test/tp.php

And test the test consumer against moodle

http://lti.tools/test/tc.php

If they are also broken it may help us diagnose the problem

Second:

I'm guessing this is on a site with SSL (great!) So you can use these urls instead.

https://lti.tools/test/tc.php

https://lti.tools/test/tp.php


It was by doing that, that I was able to determine that the problem was in my Provider site, not the consumer.

It could well be that on the consumer side that something is not correctly configured, equally, the provider too may not be correctly set up, even if you think it is.

I literally had to go systematically through all the areas before I found that in my case it seemed to be in the PHP.ini file that something was not correct.

But it did take time to fathom out.

In reply to Paul Raper

Re: LTI authentication not working

by Margaret Phelan -

Hello Paul,

Many thanks for the quick reply. Your assistance is greatly appreciated. We will run though the checks you have advised and will post any updates here.

Kind Regards,

Mags

In reply to Paul Raper

LTI Launch URL

by Arulselvan Kumarasamy -

I am new to LTI integration and i am working as Tool provider using .net. I have generated consumer key and shared secret. Also i do have the launch URL as "http://localhost:60856/oauth/LtiLaunch" i am not sure how to test this with Tool Consumer (Schoology/ Canvas). Also i tried using http://lti.tools/test/tp.php. But still shows error and i am not sure what is the error. 

Please let me know if there any way i can provide my localhost address while the tool provider is in the development stage to get the outcomes from the Tool Consumer. I saw what are the outcomes through the documents. But if i want to see in the development, i should get redirected to my localhost with the LtiRequest details.

Please anyone can help me on this issue.



In reply to Margaret Phelan

Re: LTI authentication not working

by Paul Raper -

Something that I find is that the course does not open when embedded in Moodle, I have to open it in a new window to work. I did read something about this either on a forum or in a Tracker note.

In reply to Paul Raper

Re: LTI authentication not working

by John Okely -

Hey Paul if you get that problem all you have to do is make sure you have "allow frame embedding" turned on (on the provider site). Although you should get a warning about that - have you turned it on already?

Average of ratings: Useful (1)
In reply to John Okely

Re: LTI authentication not working

by Paul Raper -

Hi John,

No I haven't, but will give it a go.

Just to give some background of why we're doing this.

I work for a University who run a University wide Moodle. But the problem with this concept is that not all of the Faculties have the same needs, so it occured to me that one way to overcome this was to set up a Faculty Moodle linked back to the Main platform.

Faculty staff can use plugins etc. that are specific to their requirements, develop courses that utilise these, but students enrol over the main Moodle, and are directed when needs be to the Faculty platform for specific activities that need something special.

Paul

In reply to John Okely

Re: LTI authentication not working

by Paul Raper -

Hi John,

I've activated it now, and yes it works a treat. Many thanks for that tidbit. smile

For anyone looking for the option, it is:

Site Adminitration>Security>HTTP security - in Moodle 3.3

Regards,

Paul

In reply to Mark Berthelemy

Re: LTI authentication not working

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?


In reply to Mark Berthelemy

Re: LTI authentication not working

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.

In reply to Tansu PANCAR

Re: LTI authentication not working

by Arulselvan Kumarasamy -

I am new to LTI integration and i am working as Tool provider using .net. I have generated consumer key and shared secret. Also i do have the launch URL as "http://localhost:60856/oauth/LtiLaunch" i am not sure how to test this with Tool Consumer (Schoology/ Canvas). Also i tried using http://lti.tools/test/tp.php. But still shows error and i am not sure what is the error. 

Please let me know if there any way i can provide my localhost address while the tool provider is in the development stage to get the outcomes from the Tool Consumer. I saw what are the outcomes through the documents. But if i want to see in the development, i should get redirected to my localhost with the LtiRequest details.

Please anyone can help me on this issue.

Average of ratings: Useful (1)
In reply to Arulselvan Kumarasamy

Re: LTI authentication not working

by Ken Kavanagh -
I am totally stumped on my my LTI (External Tool) connections are not working. 


Here's the background, We are using moodle 3.6.2 version. Am attempting to connect to a set of courses using the external tool, as the LTI consumer.  The LTI publisher has provided me a series of courses, each with their own Cartridge URL and secret.  We are making up our own Consumer Key. 


When I take one of these cartridge urls and it's respective secret and I add it as an activity to a course, selecting external tool, I get the following error message: 

An error occurred when launching the external tool:Sorry, there was an error connecting you to the application.


The URL also changes and reads: 

https://learning.orionlms.com/mod/lti/return.php?course=542&launch_container=4&instanceid=74&sesskey=1YGqrzvLsN&lti_errormsg=Sorry%2C+there+was+an+error+connecting+you+to+the+application.&lti_errorlog=Debug+error%3A+OAuth+signature+check+failed+-+perhaps+an+incorrect+secret+or+timestamp.


Now, when I go over to the moodle sandbox site or even the moodle QA site, and load the cartridge and secret as an activity, using the external tool, I can access the course without any delay, no issues no problems.  What am I doing wrong? 


1 more test for you.  I published a course on my Moodle.  I went over to the Moodle Sandbox and Moodle QA site and loaded my own Cartridge URL and secret as an activity on a test course and I got the same response from the Moodle sandbox and QA site which was: 

An error occurred when launching the external tool:Sorry, there was an error connecting you to the application.


Now I know that the problem is our moodle...but what is it.  We have authorized the Plugin LTI feature for Authentication and Enrolment, so it's active.  But is there something else that we should be looking at or checking off?  Any and all help is gratefully appreciated. 


Thanks in advance,

Ken Kavanagh

Orion Learning

ken.kavanagh@orionelearning.com


In reply to Ken Kavanagh

Re: LTI authentication not working

by Arulselvan Kumarasamy -

Hi Ken,

I did not try through moodle. After gone through many websites. I could be able to configure through https://canvas.instructure.com/login/canvas and https://www.schoology.com/ as a LTI provider. I have created the launch URL, Consumer key and secret. I have configured in schoology and canvas. It is working as expected. 


I worked as LTI Provider, but i did not work as LTI consumer. Can you please let me know are you working as a Consumer or provider.


Regards

Arul


Average of ratings: Useful (1)
In reply to Arulselvan Kumarasamy

Re: LTI authentication not working

by Ken Kavanagh -

Arul,

We are an LTI Consumer.

In reply to Ken Kavanagh

Re: LTI authentication not working

by Arulselvan Kumarasamy -

Sorry Ken, i worked as LTI provider and i am not sure about the LTI consumer details.

In reply to Arulselvan Kumarasamy

Re: LTI authentication not working

by Ken Kavanagh -

Update:  Found an article on this site which described that LTI can fail if the LTI Publisher uses a custom favicon in their Cartridge URL.  Our LTI Publisher uses custom favicons.  So we removed it and we were able to access the Publisher's course 1 time successfully. 

In our testing, as a learner, we logged in accessed the course and then logged out.  However, we are unable to access the course again.  The error we are getting this time is: 

https://ourural.com/mod/lti/return.php?course=542&launch_container=4&instanceid=74&sesskey=RlyppuZXpO&lti_errormsg=Sorry%2C+there+was+an+error+connecting+you+to+the+application.&lti_errorlog=Debug+error%3A+OAuth+signature+check+failed+-+perhaps+an+incorrect+secret+or+timestamp.

 

I will ask the Moodle Universe, is there a piece of code that we should be adding onto the end of the Tool URL so the LTI Publisher will accept a learner's multiple attempts to access the course?  We have read that we should/could put a '/' at the end of the Tool URL...but is there something that will allow for the Publisher's site to allow multiple accesses to the course by the same learner? 


Any help is gratefully appreciated!


Ken Kavanagh