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

Add a new option in Moodle app "Disabled features" for preventing the new LTI launch in the app

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.11
    • Fix Version/s: 3.11
    • Component/s: Other
    • Affected Branches:
      MOODLE_311_STABLE
    • Fixed Branches:
      MOODLE_311_STABLE
    • Pull from Repository:
    • Pull 3.11 Branch:
      MDL-71273-311
    • Pull Master Branch:
      MDL-71273-master
    • Testing Instructions:
      Hide
      1. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile if it is not already enabled
      2. Go to Site administration ►Mobile app ►Mobile features - Disabled features option
      3. Select the following
        1. "External tool -> Launch via site in system browser" option
      4. Save changes
      5. Open a terminal/console and execute the following command:

        curl 'YOUR_SITE_WWWROOT/lib/ajax/service.php' --data-binary '[{"index":0,"methodname":"tool_mobile_get_public_config","args":{}}]' | python -m "json.tool"

      6. Check that in the WS response, in the tool_mobile_disabledfeatures value field, you see
        • The following value: CoreCourseModuleDelegate_AddonModLti:launchViaSite
      7. Now, go back to Site administration ►Mobile app ►Mobile features - Disabled features option, and unselect all the options
      8. Execute the CURL request again and check that:
        • The tool_mobile_disabledfeatures value is empty
      Show
      As admin, enable "Mobile services": Plugins ► Web Services ► Mobile if it is not already enabled Go to Site administration ►Mobile app ►Mobile features - Disabled features option Select the following "External tool -> Launch via site in system browser" option Save changes Open a terminal/console and execute the following command: curl 'YOUR_SITE_WWWROOT/lib/ajax/service.php' --data-binary ' [{"index":0,"methodname":"tool_mobile_get_public_config","args":{}}] ' | python -m "json.tool" Check that in the WS response, in the tool_mobile_disabledfeatures value field, you see The following value: CoreCourseModuleDelegate_AddonModLti:launchViaSite Now, go back to Site administration ►Mobile app ►Mobile features - Disabled features option, and unselect all the options Execute the CURL request again and check that: The tool_mobile_disabledfeatures value is empty

      Description

      In the latest Moodle app version, we are adding a new launch method for LTI, we will be always launching the LTI via the site (doing before an auto-login process to the site).

      This is change how it works now because so far we always launched LTI via the app in the in-app browser. So we need to add this new option to allow the old method to work in the app (it will work fine for LTI 1.1)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              jleyva Juan Leyva
              Peer reviewer:
              Juan Leyva Juan Leyva
              Integrator:
              Jake Dallimore Jake Dallimore
              Tester:
              Gladys Basiana Gladys Basiana
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/21

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 50 minutes
                  50m