WordPress LTI Testing: Part 1

Reading Time: 2 minutes

This describes some initial testing of connecting to WordPress from a Moodle VLE instance. Main scenario being tested is Use Case 3 from this post.

WordPress setup

  1. Vanilla Installotron setup of WordPress multi-site v4.9.2
  2. Using Simon Booth plugin from Oscelot: http://www.spvsoftwareproducts.com/php/wordpress-lti/
  3. Username Format: Resource: Prefix the ID with the consumer key and resource link ID

Moodle setup

  1. Vanilla Installotron setup of Moodle v3.3.2
  2. WordPress is pre-configured as a site-wide External Tool
  3. 2 courses setup in Moodle
  4. Each course has 2 users enrolled:
    • 1 with a Student role
    • 1 with a Teacher role
  5. Link to WordPress External Tool inserted into each course.
  6. Privacy settings set to send Full Name and Email.

Course 1:

  • Following the link for the first time creates the blog site on WP.
    • Consumer Key is used as the blog ID with a following number.
    • Consumer Key = WP3-NS699T so Blog id = WP3-NS699T1
    • Blog name is set as <MoodleCourseName>:<MoodleExternalToolLinkName>
  • Teacher is assigned Administrator role on blog site.
    • Username = wp3-ns699t-1-2.
    • Full Name details are passed through and used in WP
    • No email details in WP
    • Nickname is set to same value as Username
  • Student is assigned Author role on blog site.
    • Username = wp3-ns699t-1-3
    • Full Name details are passed through and used in WP
    • No email details in WP
    • Nickname is set to same value as Username

Course 2:

  • Following the link for the first time creates the blog site on WP.
    • Consumer Key is used as the blog ID with a following incrementing number.
    • Consumer Key = WP3-NS699T so Blog id = WP3-NS699T2
    • Blog name is set as <MoodleCourseName>:<MoodleExternalToolLinkName>
  • Teacher is assigned Administrator role on blog site.
    • Username = wp3-ns699t-2-2
    • Full Name details are passed through and used in WP
    • No email details in WP
    • Nickname is set to same value as Username
  • Student is assigned Author role on blog site.
    • Username = wp3-ns699t-2-3
    • Full Name details are passed through and used in WP
    • No email details in WP
    • Nickname is set to same value as Username

Notes:

  • In both cases logging out of WordPress returns you to Moodle with a ‘logged out of WordPress’ message, which is pretty graceful.
  • WordPress plugin sticks to not requiring any PII data, but I’d like the option to send Moodle username and email address from Moodle.
    • Email address – Moodle External Tool setting are enabled to send it. Need to amend plugin to accept it and use it where provided.
    • Not sure if Moodle External Tool can share Moodle username – Check and extend Username options in the LTI Plugin config settings. (https://moodle.org/mod/forum/discuss.php?d=260129)
  • Would like more flexible role mappings. Could be setup in the WordPress plugin as a configuration option – what should incoming roles be mapped to in terms of WP roles. Would mean setting up several flavours of link in WP, and matching that with several External Tools in Moodle, but with decent names the different behaviours should be obvious.
  • Site is set up with Consumer Key as the identifier in WordPress. Would prefer this to be the course code from the VLE (context_id) and ideally also the site should be named after the context_title. **Edit: I am an idiot. This is working already.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *