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
  1. Configure as above
  2. 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:

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?

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


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/RequestStandAloneNoAttributeEnv (last edited 2007-10-29 19:15:05 by localhost)