aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md34
1 files changed, 25 insertions, 9 deletions
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 <david@moodle.org>
+Copyright 2019 Gabriel Pérez-Cerezo <gabriel@gpcf.eu>
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