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(
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]
--
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