[Checkins]
SVN: PluggableAuthService/branches/rossp-access-log/PluggableAuthService.py
Hack the underlying request headers so that the new user will be
Ross Patterson
me at rpatterson.net
Thu Aug 23 15:35:04 EDT 2007
Log message for revision 79171:
Hack the underlying request headers so that the new user will be
displayed in the access log/Z2.log
Changed:
U PluggableAuthService/branches/rossp-access-log/PluggableAuthService.py
-=-
Modified: PluggableAuthService/branches/rossp-access-log/PluggableAuthService.py
===================================================================
--- PluggableAuthService/branches/rossp-access-log/PluggableAuthService.py 2007-08-23 19:24:14 UTC (rev 79170)
+++ PluggableAuthService/branches/rossp-access-log/PluggableAuthService.py 2007-08-23 19:35:04 UTC (rev 79171)
@@ -255,6 +255,16 @@
, value
, roles
):
+
+ # Hack the underlying request headers so that the new
+ # user will be displayed in the access log/Z2.log
+ request.response.stdout._request._header_cache[
+ 'authorization'] = 'basic %s' % (
+ '%s:<from %s>' % (
+ user.getUserName(),
+ '/'.join(self.getPhysicalPath()))
+ ).encode('base64')
+
return user
if not is_top:
More information about the Checkins
mailing list