« Return to Thread: User name in access logs

User name in access logs

by Nicolas Thauvin-3 :: Rate this Message:

| View in Thread

Hi to the list,

  I would like to be able to dump an authenticated user name in the access  
logs. The problem is: in our application, the user name is fetched from a  
cookie hash using yaws_session_server. That means we cannot use the 'real'  
authorization header, and arg_rewrite_mod acts too late for this purpose.

I made a quick patch to use a custom module in order to fill the  
'authorization' structure from a cookie :

https://github.com/nthauvin/yaws/commit/840ee7021b1b3fca751661637cad3e3b7bd7f697

I am not really sure this is an appropriate way to do this. Any advice ?

Cheers,

-- Nicolas

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list

 « Return to Thread: User name in access logs