Skip to content

Software to securely facilitate student participatory research on a Moodle-based VLE for TeSLA.

Notifications You must be signed in to change notification settings

IET-OU/moodle-auth_ouopenid

Repository files navigation

Build status — Travis-CI js-semistandard-style OU-OpenID moodle plugin Accessibility testing

moodle-auth_ouopenid

This plugin is a wrapper around the OpenID authentication plugin for Moodle, plus other research-related functionality.

Available via IET-OU Satis:

Purpose

To facilitate pilot research studies using Moodle (e.g. for TeSLA) by:

  1. Enabling OpenID login using just a username, not a full URL (e.g. https://example.org/openid/{username})
  2. Simple login page with custom instructions (edit via Moodle language customisations), /index.php,
  3. Importing pilot-related data into a separate DB table, mdl_auth_ouopenid_users,
  4. Making the pilot-related data available via /user/ajax.php,
  5. Tries to redirect the participant to a bespoke URL (a work-in-progress),
  6. LESS styles to hide parts of the Moodle user-interface to simplify the experience,
  7. Javascript & LESS fixes relating to the pilot study,
  8. ...?

Note: this plugin probably needs splitting into two or more plugins!

See: CHANGELOG

Install

  1. To integrate within Moodle, either use the composer-based method described below, or unzip the code at:

    {PATHTOMOODLE}/auth/ouopenid

    Then, enable the plugin in the authentication plugins section of your Moodle's site administration.

  2. To test the plugin in standalone mode, install via Composer:

composer install
composer sym-links
composer npm-install
composer eslint-config
composer build

Test

composer test
composer eslint

Generate text-images

Re-create images of long-texts / poetry, to prevent copy-paste (e.g. for TeSLA keystroke dynamics pilot):

composer phantom-clone
composer text-srv
composer text-images

Site-wide Javascript and styles

Additional HTML - development

To embed the plugin's Javascript and stylesheet on every page:

  1. Visit the Additional HTML section of your Moodle's site administration;
  2. Copy and paste the HTML snippet below;
  3. Press the "Save changes" button.
<link href="/auth/ouopenid/style/ouop-styles.less" rel="stylesheet/less" />
<script src="/auth/ouopenid/dist.js"></script>

<script src="https://unpkg.com/[email protected]/dist/less.min.js"></script>

Additional HTML - live

<link href="/auth/ouopenid/style/ouop-styles.css?r=2017-08-16.a" rel="stylesheet" />
<script src="/auth/ouopenid/dist.min.js?r=2017-08-16.a"></script>

Developed for the TeSLA project.


© 2017-2018 The Open University. (Institute of Educational Technology)