Exyus is an HTTP/REST engine written for the Windows/ASP.NET platform. this blog lists code changes and other important updates to the code base.

2008-01-28

Adding exyus user to the IIS logs

i checked in a change this weekend that adds the logged-in exyus user to the IIS logs. this is a 'hack' but at least you can find the user in the logs now.

since exyus uses it's own Digest and Basic HTTP Auth, IIS never knows who is the authenticated user. that means the cs-username is always empty in the logs. now, by using the Response.AppendToLog(exyus_user) pattern, any time a user authenticates within exyus, the data is added to the log - as part of the cs-query field. it looks like this: +[exyus-user=mike].

check out the source code at the google code site (see sidebar) for details.

No comments: