[mod_python] problem with authen handler

Gregory Trubetskoy grisha at modpython.org
Thu Aug 10 08:19:53 EST 2000


I'm looking into this right now.... It looks like if you call
get_basic_auth_pw() *first* - you get the user name.

Grisha


On Wed, 9 Aug 2000, Jack Moffitt wrote:

> I have the same problem, which i posted about a few days back.  Having
> done some more research:
> 
> req.connection.user is correct, it has teh username
> 
> if i do username = req.connection.user then username == None.  I don't get
> it.
> 
> jack.
> 
> 
> On Wed, 9 Aug 2000, Eduardo Fernandez wrote:
> 
> > Hello everyone:
> > 
> > I whis I had discovered mod_python before. It would have saved me a lot of
> > headaches in the application I am developing right now. In this app, I
> > authenticate the users via a regular form in a page, and then keep the
> > "logged-in" state with cookies.
> > 
> > I want to do it right (TM), and use basic http authentication with
> > mod_python.
> > 
> > So I set up the documentation example, got the "Hello World!" part to work
> > and now I am trying to make the authenhandler to work.
> > 
> > I have copied the example as in the documentation and tried to access the
> > page. I get the user/pw window and fill it, but it alway fails with a 401
> > error.
> > 
> > I have tried diferent usernames and pws, but it always fails. The apache
> > logs show the user along with the 401 error, so I think I have the setup
> > working mostly ok.
> > 
> > Where could be the quirk?
> > 
> > Thanks in advance.
> > --
> > Eduardo Fernández Corrales
> > eduardo at sistelnet.es
> > Sistelnet Integraciones Telemáticas - http://www.sistelnet.es
> > NUEVOS TELEFONOS: 95-4186897 95-4186898 902-293030 Fax: 954186901
> > 
> > _______________________________________________
> > Mod_python mailing list
> > Mod_python at modpython.org
> > http://www.modpython.org/mailman/listinfo/mod_python
> > 
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
> 




More information about the Mod_python mailing list