You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by David R Robison <dr...@openroadsconsulting.com> on 2003/06/18 15:21:58 UTC

Request inclusion of new Valve

I have developed a number of Tomcat applications. In most of them I do
my own user authentication via some web-form page. While this works
great, I would like to have the username included in the access log.
I've written a very simple valve that takes the Principal from the
current session and sets it as the User Principal for the HTTP Request.
This way, the user name will be saved with the access log record. I
would like to know if it could be added as a standard valve in a future
release.

Thanks

David R Robison
Open Roads Consulting, Inc.
http://www.openroadsconsulting.com