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().startswith('basic')
auth = auth[5:].strip()
auth = base64.decodestring(auth)
username, password = auth.split(':', 1)
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?
Regards Radek
-- Radosław Kintzi (radek at lucasconsulting dot pl)
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss