[Webware-discuss] no HTTP_AUTHORIZATION in request.environ

2005-04-13 Thread Radosław Kintzi
I need to authorize users with HTTP simple authentication. I looked in to LoginKit to see how it can be done. Here is code to retrieve user name and password form request: environ = req.environ() auth = environ.get('HTTP_AUTHORIZATION', environ.get('HTTP_CGI_AUTHORIZATION')) assert auth.lower(

Re: [Webware-discuss] no HTTP_AUTHORIZATION in request.environ

2005-04-13 Thread michelts
Hi Radosław You need to use the X-HTTP_AUTHORIZATION environment variable and need to reconfigure your webware adapter as on the wiki: WKServer localhost 8086 SetHandler webkit-handler RewriteEngine On RewriteRule /WK(.*) - [E=X-HTTP_AUTHORIZATION:%{HTTP:Authorization},PT] --

Re: [Webware-discuss] no HTTP_AUTHORIZATION in request.environ

2005-04-12 Thread deelan
Radosław Kintzi wrote: (...) where req is HTTPRequest instance. I've got one problem with that. There is no HTTP_AUTHORIZATION variable in my environment. I use Apache2 and mod_webkit. What I forget about? What should I set to get this variable from Apache? AFAIK webware does not receive the nece