LTI and Moodle

LTI missing consumer key?

 
Picture of Nick Kings
LTI missing consumer key?
 

Hello,

I have two moodles setup (moodle32 and moodle33); moodle32 is the LTI provider and moodle33 is the consumer.

On the provider, the cartridge URL is: http://moodle32.lms.xxxxxx/enrol/lti/cartridge.php/3/713f367107aa5d5f72d3fa2aeaf6e5e7/cartridge.xml

On the consumer, that has been added to a course as an "Add external tool" activity

I've added the cartridge URL and secret, and the tool URL is now showing as http://moodle32.lms.xxxxxx/enrol/lti/tool.php?id=3

However, when I click on "save and display", I get the correct IFRAME and activity title, but the IFRAME content is "A required parameter (oauth_consumer_key) was missing"

Where and how is the consumer key defined on the provider moodle?

Thanks

N


 
Average of ratings: -
Picture of Nick Kings
Re: LTI missing consumer key?
 

I enabled full debug information on the provider moodle, and I get this information:

A required parameter (oauth_consumer_key) was missing

More information about this error

× Debug info:
Error code: missingparam
× Stack trace:
  • line 496 of /lib/setuplib.php: moodle_exception thrown
  • line 567 of /lib/moodlelib.php: call to print_error()
  • line 56 of /enrol/lti/tool.php: call to required_param()

 
Average of ratings: -
Picture of Michael Penney
Re: LTI missing consumer key?
Core developersParticularly helpful Moodlers

Hi do you have the Consumer Key filled out in the External Tool activity form on the Consumer site?

 
Average of ratings: -
Picture of Nick Kings
Re: LTI missing consumer key?
 

Hi

No, I haven't; that is the problem.  I can't see where that is defined on the provider site. I can see the 'secret key' but not the 'consumer key'

Thanks

 

 
Average of ratings: -
Picture of Nick Kings
Re: LTI missing consumer key?
 

Ah. Excellent. I just realised!

The consumer side can set the key to be anything.

THANKS smile

 
Average of ratings: -