Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-1 Moodle QA testing
  3. MDLQA-16118

A teacher can control account provisioning when sharing activities using LTI

    XMLWordPrintable

Details

    Description

      Docs

      The relevant documentation for this feature can be found at Publish as LTI tool

      Prerequisites

      Two sites are required for testing this feature and they must be able to communicate with one another.

      1. LTI platform (formerly known as consumer)
      2. LTI tool (formerly known as provider).

      Important: If you're testing locally, you'll need to disable the 'Blocked hosts' setting in BOTH sites. You can find it in Site administration ► Security ► HTTP security. You'll need to clear the values and save.

      Registration and publication

      1. Following the docs linked above, specifically the section on Enabling the 'Publish as LTI tool' feature, enable the relevant plugins in the tool site.
      2. Following the docs linked above, specifically the section on Dynamic registration, create the tool-platform registration
      3. In the platform site, edit the preconfigured tool settings for the tool you just created
      4. Set "Tool configuration usage" to "Show in activity chooser and as a preconfigured tool"
      5. Change the name of the tool to "QA test tool"
      6. Save the tool configuration
      7. In the tool site, create a course with a single assignment and enrol a teacher t1
      8. Log in to the tool site as a teacher t1
        Following the docs linked above, specifically the section on Sharing access to a course or activity, publish an assignment over LTI Advantage. When publishing, use the form defaults.
      9. Log out of BOTH the tool and platform sites

      Account provisioning modes

      1. Log in to the platform as the admin user
      2. Create a new course
      3. Enrol two teachers: t1 and t2
      4. Enrol two students: s1 and s2
      5. Log out
      6. Log in to the platform site as the teacher t1
      7. Go to the course and turn editing on
      8. Click to add an activity or resource
      9. Select "QA test tool"
      10. Click "Select content"
      11. Continue to link your account to the tool user 't1'
      12. When presented with the published resources list, select the "Add to course" checkbox for the assignment you published in the tool earlier.
      13. Click "Add content"
      14. Save the activity and return to the course home
      15. Launch the activity you just created
      16. Verify you're taken directly into the assignment
      17. Now log out of BOTH the tool and platform sites (note:you may need to visit TOOLSITE/login/index.php on the tool site to trigger a logout if running in embedded mode, since the site will be shown without navigation)
      18. Log in to the platform as teacher t2
      19. Go to the course
      20. Launch the assignment activity
      21. Verify you're presented with 2 options: Create a new account, or Link an existing account
      22. Log out of the platform
      23. Log in to the platform as the student s1
      24. Go to the course
      25. Launch the assignment activity
      26. Verify you're taken directly to the assignment without being prompted about account creation or linking
      27. Log out
      28. Log in to the tool site as the teacher t1
      29. Go to the course where the activity has been published
      30. Go to "Published as LTI tool" via the course navigation
      31. Edit the settings of the published assignment enrolment instance
      32. Change "Teacher first launch provisioning mode" to "Existing accounts only (prompt)"
      33. Change "Student first launch provisioning mode" to "Existing and new accounts (prompt)"
      34. Click "Save changes"
      35. Log out of the tool site
      36. Log in to the platform site as teacher t2
      37. Go to the course
      38. Launch the assignment activity
      39. Verify you now see only 1 option: Link an existing account
      40. Log out
      41. Log in to the platform site as the student s2
      42. Go to the course
      43. Launch the assignment activity
      44. Verify you're presented with 2 options: Create a new account, or Link an existing account

      Attachments

        Issue Links

          Activity

            People

              lameze Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Clockify

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