I have an external PHP app (tool provider) that I want to use with our Moodle as an external tool activity.
I configure the Launch URL,Secure launch URL,Consumer key, Shared secret,etc...
When I click on the link, it opens successfully my app launching a post request with the following information (dumped from my browser debug tool):
resource_link_title:test exernal tool
context_label:Cours de test
I would like now to write authentication code on my external tool side according to this documentation:
If I understand well the schema, I should check that the oauth_signature ('56oSlZxu0di36xhQhmCpIXmi5kw=') using the shared secred and other attributes on my app side?
Am I right?
How can I achieve that? Is there any lib to that?
A PHP snippet will be welcome.
IMS has a PHP library for this on GitHub: https://github.com/IMSGlobal/LTI-Tool-Provider-Library-PHP which can help with this, or at least provide an example of a working implementation. More generally, documentation for LTI can be found at https://www.imsglobal.org/activity/learning-tools-interoperability.