Hi every one,
I just started to work with Moodle 2.4.3 as a LTI provider, and also Moodle 2.4.3 as client, I followed the instructions to install and setup the LTI provider plugin, however i have two problems:
1. when i created an activity "external tool" in the moodle client from the course with the link http://mymoodleltiprovider/local/ltiprovider/tool.php?id=1 and the shared secret i got the message: "Invalid signature ours= JOxr4h7Io61VMnChj0dEWqQT+Mo= yours=cWs+r9tV6J+7dnK5n8GGbDLEif4=" and both strings changes every time that i reload the page.
2. When i created an activity "external tool" just using one activity from my moodle provider y got: "Firefox has detected that the server is redirecting the request for this address in a way that will never complete" redirecting to "http://mymoodleltiprovider/enrol/index.php?id=2"
There is something that i miss?, i followed the instructions in the pugin rewiew on http://www.somerandomthoughts.com/blog/2012/01/08/review-lti-provider-for-moodle-2-2/, using in the consumer key the same value of the shared secret, some random characters and a empty string.
thanks for your help
Hi every one,
Maybe I'm mis-understanding, but it sounds like you are trying to use the LTI External Tool to the Provider on the same server. Is that correct?
Might not be able to use External tool and link to the Provider on the same server.
Here's one to 'play with':
Consumer key: e00f6c053bfd358d29fc3738baf53474
'spirit of sharing', Ken
Thank you Ken, the example to play works perfectly. Right now my LTI prvider is on a different server; i don't know if i miss some configuration or the fact that i am also using mi LTI provider as a HUB
'using mi LTI provider as a HUB' ... like a true Moodle 2 HUB?
I've noticed this ... LTI link from Moodle A to Moodle B. Am the Administrator of both Moodles. If I've been tinkering with the LTI External link tool on Moodle A, and then see I'd like to change something on Moodle B (the LTI provider), browser has gotten cookies or something that affects my direct interaction with Moodle B in a new browser window. Only way to do that is logout, clear browser cache if using same browser OR use a different browser.
Haven't tried to combine the HUB I run with courses that also have LTI Provider. So you may have stumbled upon a combo that conflicts but maybe only for admin users who might be into both systems using the same browser.
'spirit of sharing', Ken
One of the first errors that i got was that i was using the same browser for both installations and logged as administrator, but as soon as i changed that i got the responses that i wrote in the first comment.
Finally i got access to the LTI provider and i set the option of display all the errors and i have this:
textlib_get_instance() is deprecated. Please use static calling textlib::functioname() instead.
line 2905 of \lib\deprecatedlib.php: call to debugging()
line 91 of \local\ltiprovider\tool.php: call to textlib_get_instance()
Skip to main content
This page did not call $PAGE->set_url(...). Using http://myltiprovider/local/ltiprovider/tool.php?id=2
line 557 of \lib\pagelib.php: call to debugging()
line 717 of \lib\pagelib.php: call to moodle_page->magic_get_url()
line 530 of \lib\outputrenderers.php: call to moodle_page->__get()
line 47 of \theme\oelts_hub\layout\home.php: call to core_renderer->login_info()
line 807 of \lib\outputrenderers.php: call to include()
line 737 of \lib\outputrenderers.php: call to core_renderer->render_page_layout()
line 683 of \lib\outputrenderers.php: call to core_renderer->header()
line ? of unknownfile: call to core_renderer->redirect_message()
line 1455 of \lib\setuplib.php: call to call_user_func_array()
line 2536 of \lib\weblib.php: call to bootstrap_renderer->__call()
line 2536 of \lib\weblib.php: call to bootstrap_renderer->redirect_message()
line 266 of \local\ltiprovider\tool.php: call to redirect()
So i will check if i made some changes in the core of moodle that create those errors.
by the way, the plugin version of the LTI provider is 2011121706
Hmmm ... judging from the errors show appears to be Windows. And did you obscure the URL http://myltiprovider/? Is a Windows type shortcut URL and the other systems/browsers on different networks might have some issues with that.
And ... 'some random characters and a empty string' ... when I setup an LTI provider thang, there is a shared key generated. Maybe that's the issue ... in the first posting ... ie one of those 'invalid signatures' the 'random characters' you created?
It wouldn't hurt to check the plugins out to see if there is an updated version of LTI Provider.
Current version: 2.2 (2011121706)