MoinMoin: Difference between revisions
No edit summary |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{unsupported}} | |||
MoinMoin is a Python-based wiki. | MoinMoin is a Python-based wiki. | ||
Authenticate users via Raven and then auto-creating accounts is very easy to do, and is supported out-of-the box without hacking the MoinMoin code. | Authenticate users via Raven and then auto-creating accounts is very easy to do, and is supported out-of-the box without hacking the MoinMoin code. However it needs the 'AAForceAuthType' directive which is only available in mod_ucam_webauth version 1.4.1 and above. | ||
'' | |||
# Firstly ensure you are using MoinMoin 1.5 or above. | # Firstly ensure you are using MoinMoin 1.5 or above. | ||
Line 12: | Line 12: | ||
Deny from all | Deny from all | ||
AuthType Ucam-WebAuth | AuthType Ucam-WebAuth | ||
AADescription " | AADescription "St Botolph's College wiki" | ||
Require user spqr1 abc123 | Require user spqr1 abc123 | ||
Satisfy any | Satisfy any |
Latest revision as of 12:39, 17 June 2015
MoinMoin is a Python-based wiki.
Authenticate users via Raven and then auto-creating accounts is very easy to do, and is supported out-of-the box without hacking the MoinMoin code. However it needs the 'AAForceAuthType' directive which is only available in mod_ucam_webauth version 1.4.1 and above.
- Firstly ensure you are using MoinMoin 1.5 or above.
- Set up container-based authentication in Apache, as you would have to do anyway, using e.g.
<Location /> Deny from all AuthType Ucam-WebAuth AADescription "St Botolph's College wiki" Require user spqr1 abc123 Satisfy any # AAForceAuthType in the following line makes Apache think mod_ucam_webauth is actually providing 'Basic' authentication AAForceAuthType Basic </Location>
You should then have a wiki with authenticated access.
To add recognition of the username and auto-creation of accounts, follow the instructions at http://moinmoin.wikiwikiweb.de/HelpOnAuthentication , namely: add the following to wikiconfig.py:
from MoinMoin.auth import http auth = [http] user_autocreate = True
(bear in mind that this must be indented correctly in the config file) and that should just work.
The same principle applies if not using Raven as the authentication mechanism - MoinMoin supports autocreation of users.