One of the arguments of WindowsAuthentication_Authenticate
method is of WindowsAuthenticationEventArgs
type. One of its properties is Identity
, so You should probably be able to access user name by writing e.Identity.Name
.
Reference links:
- WindowsAuthenticationModule.Authenticate Event: http://msdn.microsoft.com/en-us/library/vstudio/system.web.security.windowsauthenticationmodule.authenticate%28v=vs.100%29.aspx
- WindowsAuthenticationEventArgs Properties: http://msdn.microsoft.com/en-us/library/system.web.security.windowsauthenticationeventargs_properties%28v=vs.100%29.aspx