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 necessary headers needed to perform http basic auth, however this it can be easily solved added these lines to you http.conf file:

RewriteEngine On

# pass HTTP auth headers
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^/(.*)$ - [env=Authorization:%1]

you can then grab "Authorization" header from your webware app.
more info here: <http://wiki.w4py.org/httpauthentication.html>

i have some working code that perform http basic auth (a
SecurePage servlet) -- let me known if you need it :)

HTH,
deelan


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

Reply via email to