Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-51615

New Web Service mod_lti_get_tool_launch_data

    XMLWordPrintable

Details

    • MOODLE_29_STABLE
    • MOODLE_30_STABLE
    • MDL-51615-master
    • Hide
      1. In a course create a new external tool activity using this data:
      2. * Launch URL: http://www.imsglobal.org/developers/LTI/test/v1p1/tool.php
      3. * Shared secret: secret
      4. * Consumer key: 12345
      5. Log in as a student user and check that the external tool opens (you will see a blue page "IMS LTI 1.1 PHP Provider" with a Context Information section where you can see the data that has been sent to the external tool)
      6. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      7. Create a Token for the student user:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      8. Next, download the two files attached, place them in a directory accessible in your server.
      9. Edit the client_lti_launch.php and change the request data (token, url, and the toolid that is the external tool instance id in the table mdl_lti). This file calls the remote WS mod_lti_get_tool_launch_data and then launch the LTI Request via POST
      10. Open the client_lti_launch.php in a different browser (http://localhost/client_lti_launch.php)
      11. Check that you see the same blue page with the same data (some data like the timestamp and nonce will be different but that's is ok)
      Show
      In a course create a new external tool activity using this data: * Launch URL: http://www.imsglobal.org/developers/LTI/test/v1p1/tool.php * Shared secret: secret * Consumer key: 12345 Log in as a student user and check that the external tool opens (you will see a blue page "IMS LTI 1.1 PHP Provider" with a Context Information section where you can see the data that has been sent to the external tool) As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for the student user: Click on Site administration ► Plugins ► Web services ► Manage tokens Next, download the two files attached, place them in a directory accessible in your server. Edit the client_lti_launch.php and change the request data (token, url, and the toolid that is the external tool instance id in the table mdl_lti). This file calls the remote WS mod_lti_get_tool_launch_data and then launch the LTI Request via POST Open the client_lti_launch.php in a different browser ( http://localhost/client_lti_launch.php ) Check that you see the same blue page with the same data (some data like the timestamp and nonce will be different but that's is ok)

    Description

      New Web Service for retrieving launch data (the request endpoint and all the parameters including the final signature) for launching LTI requests

      Attachments

        Issue Links

          Activity

            People

              jleyva Juan Leyva
              jleyva Juan Leyva
              Mark Nelson Mark Nelson
              Dan Poltawski Dan Poltawski
              Rajesh Taneja Rajesh Taneja
              Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                16/Nov/15