Description
I'm using MoinMoin 1.5.3 as a standalone server. I am trying to set up http basic authentication.
Visting any wiki page throws the error, "'RequestStandAlone' object has no attribute 'env'".
Steps to reproduce
from MoinMoin.auth import http auth = [http] user_autocreate = True
- Configure as above
- Visit a wiki page
Details
MoinMoin Version |
1.5.5a + fix for if-none-match problem |
OS and Version |
Debian GNU/Linux 3.1 ("sarge") |
Python Version |
2.3.5 |
Server Setup |
standalone |
Server Details |
behind an Apache proxy, but the same thing happens when accessing the server directly |
Language you are using the wiki in |
english |
Workaround
Discussion
Same thing happens with 1.5.5a plus the patch.
Yeah, sorry. I looked in the code and we simply didn't implement http auth for standalone. http auth "as is" is implemented for:
- Twisted
- CGI, FastCGI, maybe also mod_python
Oh... given that I want HTTP authentication to be done by the Apache proxy, is there any other way to get MoinMoin to use the value of the REMOTE_USER environment variable as the authenticated user name, or should I try one of the alternative servers?
- You have to find out how apache passes auth information in that case. As it is NOT calling moin as cgi, there won't be an environment variable REMOTE_USER. Maybe there are some http auth headers being sent by the browser? Or some headers being added by apache when proxying?
Ok, now I see what you mean. Apache is passing through HTTP 'Authorization' header verbatim to the moin server. Anyway, I switched to the twisted server since it's basically the same as the standalone one but with working http authentication. Thanks.
Plan
- Priority:
- Assigned to:
- Status: not really a bug, but just not supported / implemented