LTI and Moodle

LTI tool throws error on my LMS.

 
Picture of Kate Tretiak
LTI tool throws error on my LMS.
 

I tried to test LTI connection and grading from my LMS. I succesfully published course as LTI tool, but I couldn't access it from consumer. 

Screenshot with errors.

Second question about consumer key: do you have some default key or it's value is optional?


 
Average of ratings: -
Picture of Nigel Hoath
Re: LTI tool throws error on my LMS.
 

Kate these errors normally indicate that the stated parameters are absent from the request POST.

Here are the said parameters from my LTi simulator that works well with Moodle 3.1 on both Windows 10 localhost and Centos on a remote in the cloud.

$launch_data["lti_version"] = "LTI-1p0";
$launch_data["lti_message_type"] = "basic-lti-launch-request";
$resource_link_id = kkkk

Note like several LTi parameters $resource_link_id must be present but can be any value, or so it would appear from our testing.

consumer_key we set to a string that identifies the consumer.  We had hoped it would be used as a prefix to the created user name (as we do not pass real user credentials) but sadly not.  We might do a bespoke on this as it would be really useful.

HTH Nigel



 
Average of ratings: -
Picture of Kate Tretiak
Re: LTI tool throws error on my LMS.
 

Thank you for your answer. I already fixed this, but got another issue connected with X-Frame-Options "SameOrigin" settings. I have troubles only when trying to connect Moodle's LTI Provider, with other platforms my LMS consumer works properly. 

Note: I tried to connect from standard IMS testing tool consumer and few other consumers and got the same error everywhere. 

Please, could you review this?


 
Average of ratings: -
Picture of Nigel Hoath
Re: LTI tool throws error on my LMS.
 

Kate

if (empty($CFG->allowframembedding)) {
        @header('X-Frame-Options: sameorigin');
    }

Can you check if frame embedding is set in Moodle?

Site administration / > Security / > HTTP security Allow frame embedding

I assume this error is  from the provider.

HTH Nigel


 
Average of ratings: Useful (1)
Picture of Kate Tretiak
Re: LTI tool throws error on my LMS.
 

Hi, Nigel. Unfortunately I have no access to administration part of the site. And I cannot make sure If this option is checked or unchecked. Situation with error still the same for the moment.

 
Average of ratings: -
Picture of Ka Kill
Re: LTI tool throws error on my LMS.
 

Was this ever resolved.  I've been told it's the cause of my issue as well  Nobody will tell me how to fix it in Moodlecloud.

 
Average of ratings: -