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

Upgrade lti1p3 to patched v5.2.6

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Minor
    • 4.2
    • 4.2
    • Libraries
    • MOODLE_402_STABLE
    • MOODLE_402_STABLE
    • MDL-76926-master
    • Hide

      Setup

      1. Create 2 local Moodle sites called 'platform' and 'tool'
      2. Clear the blocked hosts for both sites, via site admin > http security > blocked hosts (just remove all hosts and save)
      3. If you're using a non-standard HTTP port (not 80), then also add that to the whitelisted ports section as it won't be there by default.
      4. On the tool site, navigate to Site admin -> HTTP Security
      5. Enable Frame embedding

      Testing

      1. Using the dynamic registration process defined in the docs (https://docs.moodle.org/400/en/Publish_as_LTI_tool#Register_Moodle_with_the_platform), enable the relevant plugins on the tool site and create a registration for the platform site
      2. On the tool site ensure that the LTI Authentication plugin is also enabled
      3. Continue on the platform site (admin > manage tools) to complete the registration (again, see docs)
        1. Now, still on the platform site, edit the preconfigured tool setting:
          •  Tool configuration usage: "Show in activity chooser and as a preconfigured tool"
        2. Save the tool
        3. Click activate on the tool
      4. Now, go to the tool site.
        1. Create a course with one assignment
        2. Click "More -> Published as LTI tools"
        3. Make sure you're on the LTI Advantage tab and click "Add"
        4. Select the assignment under "Tool to be published"
        5. Click "Add method"
      5. Now, go back to the platform and sign in as admin
        1. Now, create a course with 5 students (s1..s5)
        2. Click to add an activity, selecting "Moodle" from the activity chooser
        3. Click "Select content"
        4. If you're not logged in to the tool site (and don't have an account binding), you'll be prompted. Just follow the prompts and relaunch the "Select content" as required
        5. Click the "Add to course" checkbox for the assignment you published before (add to gradebook will be automatically ticked)
        6. Click "Add content"
        7. When you're back on the activity edit page, save and return to the course
        8. Click the newly created activity
          1. Verify you can see the remote resource (the assignment) loaded in a frame (If not, did you enable frame embedding on the tool site?)
        9. Now, log out
      6. Log in to the platform as user s1 (one of the students)
        1. Go to the course and launch the tool
        2. Add a file submission and submit
        3. Log out
      7. Now, log in to the platform as the admin again
        1. Launch the tool from the course and click "Grade" for the assignment
        2. Add a grade for the user s1 and save
        3. Now, via the command line, in the root of the tool site, run:

          php admin/cli/scheduled_task.php --execute="\enrol_lti\local\ltiadvantage\task\sync_grades" 

        4. Verify the task completes without errors
        5. Now, in the platform (where you're logged in as an admin) go to the course (the platform course - make sure you're not navigating using the navigation inside the tool frame!)
        6. Go to grades
        7. Verify you see the grade you gave the student s1
        8. Now, log out of the platform
      8. Log in to the tool site as the admin user
        1. Go to the course in which you published the assignment
        2. Go to participants
        3. Verify you see only the admin and s1 users there
        4. Now, via the command line, in the root of the tool site, run:

          php admin/cli/scheduled_task.php --execute="\enrol_lti\local\ltiadvantage\task\sync_members" 

        5. Verify the task completes without errors
      9. In the tool, refresh the participants page
        1. Verify you see the other members of the platform course now present in the list (s2 through s5)
      Show
      Setup Create 2 local Moodle sites called 'platform' and 'tool' Clear the blocked hosts for both sites, via site admin > http security > blocked hosts (just remove all hosts and save) If you're using a non-standard HTTP port (not 80), then also add that to the whitelisted ports section as it won't be there by default. On the tool site, navigate to Site admin -> HTTP Security Enable Frame embedding Testing Using the dynamic registration process defined in the docs ( https://docs.moodle.org/400/en/Publish_as_LTI_tool#Register_Moodle_with_the_platform ), enable the relevant plugins on the tool site and create a registration for the platform site On the tool site ensure that the LTI Authentication plugin is also enabled Continue on the platform site (admin > manage tools) to complete the registration (again, see docs) Now, still on the platform site, edit the preconfigured tool setting:  Tool configuration usage: "Show in activity chooser and as a preconfigured tool" Save the tool Click activate on the tool Now, go to the tool site. Create a course with one assignment Click "More -> Published as LTI tools" Make sure you're on the LTI Advantage tab and click "Add" Select the assignment under "Tool to be published" Click "Add method" Now, go back to the platform and sign in as admin Now, create a course with 5 students (s1..s5) Click to add an activity, selecting "Moodle" from the activity chooser Click "Select content" If you're not logged in to the tool site (and don't have an account binding), you'll be prompted. Just follow the prompts and relaunch the "Select content" as required Click the "Add to course" checkbox for the assignment you published before (add to gradebook will be automatically ticked) Click "Add content" When you're back on the activity edit page, save and return to the course Click the newly created activity Verify you can see the remote resource (the assignment) loaded in a frame (If not, did you enable frame embedding on the tool site?) Now, log out Log in to the platform as user s1 (one of the students) Go to the course and launch the tool Add a file submission and submit Log out Now, log in to the platform as the admin again Launch the tool from the course and click "Grade" for the assignment Add a grade for the user s1 and save Now, via the command line, in the root of the tool site, run: php admin/cli/scheduled_task.php --execute= "\enrol_lti\local\ltiadvantage\task\sync_grades" Verify the task completes without errors Now, in the platform (where you're logged in as an admin) go to the course (the platform course - make sure you're not navigating using the navigation inside the tool frame!) Go to grades Verify you see the grade you gave the student s1 Now, log out of the platform Log in to the tool site as the admin user Go to the course in which you published the assignment Go to participants Verify you see only the admin and s1 users there Now, via the command line, in the root of the tool site, run: php admin/cli/scheduled_task.php --execute= "\enrol_lti\local\ltiadvantage\task\sync_members" Verify the task completes without errors In the tool, refresh the participants page Verify you see the other members of the platform course now present in the list (s2 through s5)
    • 1
    • Team Hedgehog Sprint 2.2

    Description

      lti1p3    lib/lti1p3    5.2.1  -->  5.2.6    https://github.com/snake/lti-1-3-php-library/tree/moodle-fixes

      Attachments

        Issue Links

          Activity

            People

              jaked Jake Dallimore
              sarjona Sara Arjona (@sarjona)
              Matt Porritt Matt Porritt
              Paul Holden Paul Holden
              Kim Jared Lucas Kim Jared Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 38 minutes
                  1d 38m

                  Clockify

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