From 015333afe98d72a42b72b2f4879fa7a1b9aa0460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Wed, 17 Apr 2019 09:00:02 +0200 Subject: Repurpose plugin as minetest authentication. --- README.md | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index fcddb68..34b6bfc 100644 --- a/README.md +++ b/README.md @@ -1,36 +1,52 @@ -# AuthMoodle +# AuthMinetest -Extension for MediaWiki allowing to authenticate users against Moodle database via mobile app service. +Extension for MediaWiki allowing to authenticate users against a Minetest server ## Requirements: * MediaWiki 1.27+ -* Moodle 3.1+ with mobile app service enabled +* Minetest with auth_export mod enabled +* minetestauth.py duct-tape http server ## Installation and setup -Clone / unzip into your MediaWiki's extension/AuthMoodle/ folder. +Clone / unzip into your MediaWiki's extension/AuthMinetest/ folder. Configure your MediaWiki authentication manager to use this extension as the primary authentication provider: - wfLoadExtension( 'AuthMoodle' ); + wfLoadExtension( 'AuthMinetest' ); $wgAuthManagerAutoConfig['primaryauth'] = [ - MediaWiki\Auth\MoodlePasswordPrimaryAuthenticationProvider::class => [ - 'class' => MediaWiki\Auth\MoodlePasswordPrimaryAuthenticationProvider::class, + MediaWiki\Auth\MinetestPasswordPrimaryAuthenticationProvider::class => [ + 'class' => MediaWiki\Auth\MinetestPasswordPrimaryAuthenticationProvider::class, 'args' => [ [ - 'moodleUrl' => 'https://your.moodle.url', + 'minetestUrl' => 'http://your.minetest.url', ] ], 'sort' => 0, ], - ]; + ]; + +Enable the auth\_export mod on your minetest server, and install the +minetestauth.py script. You then need to point both the auth\_export +mod and this plugin to the minetestauth.py script like this: + + auth_export ←→ minetestauth.py ←→ AuthMinetest + +Keep in mind that stuff is sent in plain text, so you should have all +of these listening on localhost or use encrypted tunnels between the +hosts, such as ssh or vpn tunnels. ## Copying +This extension is based on +[AuthMoodle](https://github.com/moodlehq/mediawiki-authmoodle) by +David Mudrák. + Copyright 2017 David Mudrák +Copyright 2019 Gabriel Pérez-Cerezo This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -- cgit v1.2.3