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

LTI return.php should optionally require a instanceid

XMLWordPrintable

    • MOODLE_26_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • MDL-45767_returnInstanceid
    • Hide
      1. Create a course.
      2. Create a External Tool activity. In the activity settings, use the following for the Launch URL: http://www.imsglobal.org/developers/LTI/test/v1p1/tool.php
      3. Take note of both the course ID and the External tool instance ID (in the mdl_lti table).
      4. Craft this URL: http://yourmoodle/mod/lti/return.php?course=X&instanceid=Y&lti_errormsg=Testing&unsigned=1
        • Replace X with the course ID
        • Replace Y with the LTI instance ID
      5. After navigating to that URL, you should see the LTI activity instance name as a heading with some text below it.
      6. Now craft this URL: http://yourmoodle/mod/lti/return.php?course=X&instanceid=0&lti_errormsg=Testing&unsigned=1
        • Replace X with the course ID
      7. After navigating to that URL, you should no longer see the LTI activity instance name as a heading. Instead, just the error text.
      Show
      Create a course. Create a External Tool activity. In the activity settings, use the following for the Launch URL: http://www.imsglobal.org/developers/LTI/test/v1p1/tool.php Take note of both the course ID and the External tool instance ID (in the mdl_lti table). Craft this URL: http://yourmoodle/mod/lti/return.php?course=X&instanceid=Y&lti_errormsg=Testing&unsigned=1 Replace X with the course ID Replace Y with the LTI instance ID After navigating to that URL, you should see the LTI activity instance name as a heading with some text below it. Now craft this URL: http://yourmoodle/mod/lti/return.php?course=X&instanceid=0&lti_errormsg=Testing&unsigned=1 Replace X with the course ID After navigating to that URL, you should no longer see the LTI activity instance name as a heading. Instead, just the error text.

      Not all tools will have a instanceid when returning to Moodle. Update mod/lti/return.php to optionally accept an instance ID.

            bushido Mark Nielsen (Inactive)
            bushido Mark Nielsen (Inactive)
            Andrew Davis Andrew Davis
            Damyon Wiese Damyon Wiese
            Michael de Raadt Michael de Raadt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.