diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2019-04-17 09:00:02 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2019-04-17 09:00:02 +0200 |
commit | 015333afe98d72a42b72b2f4879fa7a1b9aa0460 (patch) | |
tree | febf7dae3f83394547ad3c7e42520f59e6b3dc07 /README.md | |
parent | 03667616c1c6ca3613153179dd994e73d72137f6 (diff) | |
download | AuthMinetest-015333afe98d72a42b72b2f4879fa7a1b9aa0460.tar.gz AuthMinetest-015333afe98d72a42b72b2f4879fa7a1b9aa0460.tar.bz2 AuthMinetest-015333afe98d72a42b72b2f4879fa7a1b9aa0460.zip |
Repurpose plugin as minetest authentication.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 34 |
1 files changed, 25 insertions, 9 deletions
@@ -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 |