Moodle authentication plugin for Macaroons
Brendan Abolivier 786b6dcde5 Cleaning up and commenting il y a 7 ans
Macaroons First commit il y a 7 ans
lang/en Switching strings to locale instead of having them hardcoded il y a 7 ans
.gitignore First commit il y a 7 ans
README.md Adding a nice README il y a 7 ans
auth.php Cleaning up and commenting il y a 7 ans
config.html Cleaning up and commenting il y a 7 ans
version.php First commit il y a 7 ans

README.md

Macaroons authentication plugin for Moodle

This plugin is part of a proof of concept on Macaroons I made here. It should be, however, totally usable.

The PHP implementation of Macaroons used in this plugin (which includes everything in Macaroons) has been developped by immense.

Install

Drop all the files in this repository to the auth directory (at the root of your Moodle setup), in a directory named macaroons.

In short, you can cd to Moodle's auth directory then run

git clone https://github.com/babolivier/moodle_macaroons macaroons

You may then need to rebuild Moodle's cache. To do so, run

php [your Moodle setup]/admin/cli/purge_caches.php

Configuration

You'll then see a "Macaroons" line popping in the authentication management page in Moodle's admin panel. If you're not much familiar with this page, please head over here.

Please give a look at the plugin's settings before using it. Mandatory settings are:

  • Cookie name
  • Secret
  • Identifier format
  • E-mail template

All are described on the plugin's settings page.