mod_auth_pubtkt is working great for me so far... but I have hit a
potential showstopper.
My application accepts a username as part of the URL:
http://www.myserver.com/appname/<username>/<date>
but also accepts a shortened version of the URL and uses mod_rewrite
to supply REMOTE_USER as the default username (along with some other
defaults) and redirect:
http://www.myserver.com/appname -->
http://www.myserver.com/appname/dave/today
My RewriteRule, which has worked under "AuthType Basic", is:
RewriteRule ^/appname/?$ /appname/%{LA-U:REMOTE_USER}/today [R,L]
However, I'm finding that under "AuthType mod_auth_pubtkt", the
lookahead is failing for REMOTE_USER and the URL is being rewritten
as:
http://www.myserver.com/appname -->
http://www.myserver.com/appname//today
(This is true whether I use "LA-U" or "LA-F" in the rule. I've also
tried turning on TKTAuthFakeBasicAuth.)
My web server is Apache/2.2.17 (Unix) mod_wsgi/3.2 Python/2.6.4
mod_auth_pubtkt/0.6 mod_apreq2-20090110/2.8.0 mod_perl/2.0.4 Perl/
v5.10.1
REMOTE_USER works just fine in my web applications (both mod_perl and
Python/Django apps) under mod_auth_pubtkt. It's only in the
mod_rewrite phase that I'm having a problem. At RewriteLogLevel 3,
the handling looks like this:
(3) applying pattern '^/appname/?$' to uri '/appname'
(2) rewrite '/appname' -> '/appname//today'
(2) explicitly forcing redirect with
http://www.myserver.com/appname//today
(1) escaping
http://www.myserver.com/appname//today for redirect
(1) redirect to
http://www.myserver.com/appname//today [REDIRECT/302]
Ideas?