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

LTI enrolment should auto detect if the consumer and provider are same site and re-use accounts

    XMLWordPrintable

Details

    • MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • MDL-57345_master
    • Hide
      Test 1
      1. Create a Moodle site.
      2. Log in as the admin.
      3. Create two courses (one call ‘Provider’ another called ‘Consumer’).
      4. Create a user.
      5. Visit ‘Site administration’ > ‘Plugins’ > ‘Authentication’ > ‘Manage authentication’.
      6. Make sure the ‘LTI’ authentication plugin is enabled.
      7. Visit ‘Site administration’ > ‘Plugins’ > ’Enrolments’ > ‘Manage enrol plugins’.
      8. Make sure the ‘Publish as LTI tool’ enrolment plugin is enabled.
      9. Visit the course 'Provider'.
      10. In the top right in the course page click on the cog and then 'Published as LTI tools'.
      11. Click 'Add'.
      12. Make a random 'Custom instance name'.
      13. Select 'Course' as the 'Tool to be published'.
      14. Save the form.
      15. Copy the 'Cartridge URL' and the 'Secret' into a text file.
      16. Visit the course 'Consumer'.
      17. Enrol the user you created earlier in the course as a student.
      18. Add an 'External tool' activity to the course.
      19. Add a random 'Activity name'.
      20. Copy the 'Cartridge URL' from earlier into the 'Tool URL' field.
      21. Copy the 'Secret' from earlier into the 'Shared secret' field.
      22. Add a random consumer key.
      23. Save the form.
      24. Log in as the student.
      25. Visit the 'Consumer' course.
      26. Click on the 'External tool' activity you created.
      27. Open the tool.
      28. Confirm you can access the 'Provider' course.
      29. Log in as an 'Admin'.
      30. View the list of users on your site.
      31. Ensure there aren't two users created for that user.
      Test 2
      1. Create two Moodle sites (‘Provider’ and ‘Consumer’).
      2. Log in as the admin on the 'Provider' site.
      3. Visit ‘Site administration’ > ‘Plugins’ > ‘Authentication’ > ‘Manage authentication’.
      4. Make sure the ‘LTI’ authentication plugin is enabled.
      5. Visit ‘Site administration’ > ‘Plugins’ > ’Enrolments’ > ‘Manage enrol plugins’.
      6. Make sure the ‘Publish as LTI tool’ enrolment plugin is enabled.
      7. Create a course.
      8. Visit the course.
      9. In the top right in the course page click on the cog and then 'Published as LTI tools'.
      10. Click 'Add'.
      11. Make a random 'Custom instance name'.
      12. Select 'Course' as the 'Tool to be published'.
      13. Save the form.
      14. Copy the 'Cartridge URL' and the 'Secret' into a text file.
      15. Log into the site 'Consumer' as an admin.
      16. Create a user.
      17. Create a course.
      18. Enrol the user you created earlier in the course as a student.
      19. Add an 'External tool' activity to the course.
      20. Add a random 'Activity name'.
      21. Copy the 'Cartridge URL' from earlier into the 'Tool URL' field.
      22. Copy the 'Secret' from earlier into the 'Shared secret' field.
      23. Add a random consumer key.
      24. Save the form.
      25. Log in as the student on the 'Consumer' site.
      26. Visit the course.
      27. Click on the 'External tool' activity you created.
      28. Open the tool.
      29. Confirm you can access the 'Provider' site's course.
      30. Log in as an 'Admin' on the 'Provider' site.
      31. View the list of users on your site.
      32. Ensure a new user was created for the user who came from the 'Consumer' site.
      Show
      Test 1 Create a Moodle site. Log in as the admin. Create two courses (one call ‘Provider’ another called ‘Consumer’). Create a user. Visit ‘Site administration’ > ‘Plugins’ > ‘Authentication’ > ‘Manage authentication’. Make sure the ‘LTI’ authentication plugin is enabled. Visit ‘Site administration’ > ‘Plugins’ > ’Enrolments’ > ‘Manage enrol plugins’. Make sure the ‘Publish as LTI tool’ enrolment plugin is enabled. Visit the course 'Provider'. In the top right in the course page click on the cog and then 'Published as LTI tools'. Click 'Add'. Make a random 'Custom instance name'. Select 'Course' as the 'Tool to be published'. Save the form. Copy the 'Cartridge URL' and the 'Secret' into a text file. Visit the course 'Consumer'. Enrol the user you created earlier in the course as a student. Add an 'External tool' activity to the course. Add a random 'Activity name'. Copy the 'Cartridge URL' from earlier into the 'Tool URL' field. Copy the 'Secret' from earlier into the 'Shared secret' field. Add a random consumer key. Save the form. Log in as the student. Visit the 'Consumer' course. Click on the 'External tool' activity you created. Open the tool. Confirm you can access the 'Provider' course. Log in as an 'Admin'. View the list of users on your site. Ensure there aren't two users created for that user. Test 2 Create two Moodle sites (‘Provider’ and ‘Consumer’). Log in as the admin on the 'Provider' site. Visit ‘Site administration’ > ‘Plugins’ > ‘Authentication’ > ‘Manage authentication’. Make sure the ‘LTI’ authentication plugin is enabled. Visit ‘Site administration’ > ‘Plugins’ > ’Enrolments’ > ‘Manage enrol plugins’. Make sure the ‘Publish as LTI tool’ enrolment plugin is enabled. Create a course. Visit the course. In the top right in the course page click on the cog and then 'Published as LTI tools'. Click 'Add'. Make a random 'Custom instance name'. Select 'Course' as the 'Tool to be published'. Save the form. Copy the 'Cartridge URL' and the 'Secret' into a text file. Log into the site 'Consumer' as an admin. Create a user. Create a course. Enrol the user you created earlier in the course as a student. Add an 'External tool' activity to the course. Add a random 'Activity name'. Copy the 'Cartridge URL' from earlier into the 'Tool URL' field. Copy the 'Secret' from earlier into the 'Shared secret' field. Add a random consumer key. Save the form. Log in as the student on the 'Consumer' site. Visit the course. Click on the 'External tool' activity you created. Open the tool. Confirm you can access the 'Provider' site's course. Log in as an 'Admin' on the 'Provider' site. View the list of users on your site. Ensure a new user was created for the user who came from the 'Consumer' site.

    Description

      Compare wwwroot with consumer profile URL. If they match, it must be the same site for consumer & provider. So enrol the same user accounts used to access the tool, instead of creating new ones (if possible - can't do it if emails etc not sent)

      Attachments

        Issue Links

          Activity

            People

              Votes:
              30 Vote for this issue
              Watchers:
              43 Start watching this issue

              Dates

                Created:
                Updated: