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

Launching preconfigured LTI 1.3 external tools doesn't include optional Platform instance claim even it's configured

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE

      Platform instance claim is an optional claim in LTI 1.3 specification. See https://www.imsglobal.org/spec/lti/v1p3#platform-instance-claim.

      In mod_lti implementation, when configuring a pre-defined tool, the last section of the configuration allows setting the "Default organisation ID", "Organisation ID", and "Organisation URL", which are to be used to construct the variables in this claim  in function lti_build_standard_message(), with $orgid to be the guid of the platform instance guid. This is at https://github.com/moodle/moodle/blob/0360329c46ad4c1d20e84268d6507f0ea29cc2f0/mod/lti/locallib.php#L983-L1019

      However, when launching a LTI 1.3 tool, function lti_initiate_login() is called, which in turn get request parameters from function lti_build_login_request() at https://github.com/moodle/moodle/blob/0360329c46ad4c1d20e84268d6507f0ea29cc2f0/mod/lti/locallib.php#L3496-L3524

      and it doesn't return the tool_consumer_instance_guid parameter.

      As a result, the platform claims are never sent in the launch requests for LTI 1.3 external tools.

        1. image-2021-10-28-12-41-16-350.png
          22 kB
          Oswaldo Rojas
        2. image-2021-10-28-12-45-35-963.png
          69 kB
          Oswaldo Rojas
        3. image-2021-10-28-12-48-23-369.png
          15 kB
          Oswaldo Rojas

            Unassigned Unassigned
            weilai Lai Wei
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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