Closed GoogleCodeExporter closed 8 years ago
My current thinking on this is that I shouldn't add this to mod_wsgi as a
builtin feature.
The normal approach one would take with this is to write a special Apache
module in C code which adds an
output filter which can look at returned headers and strip out a special
returned header such as X-Remote-User
and update req.user based on its value. I am actually surprised I cant find an
existing Apache module which does
this.
One other possibility is to enhance mod_wsgi to support input/output filters,
something that has been
contemplated, doing it in such a way as to make it reasonably trivial to
implement an output filter using Python
to do the above, rather than need to write a full Apache C module.
Original comment by Graham.Dumpleton@gmail.com
on 10 Mar 2010 at 10:15
Some way to support this easily would help me know where to target optimization
work. Basically I need to know for frequently accessed pages how many of those
accesses are by logged in users.
Original comment by dbenamy
on 30 Nov 2010 at 9:12
Closing this as non trivial and not something that has been asked about for a
very long time.
Original comment by Graham.Dumpleton@gmail.com
on 17 Sep 2014 at 3:52
Original issue reported on code.google.com by
Graham.Dumpleton@gmail.com
on 4 Mar 2010 at 10:55