I'm trying to find out how to find the identity of the logged on user in an webapi. On dev server and on older IIS7 the identity is available in multiple places, but when I try to set up my application on IIS8 all known sources are blank.
Using <authentication mode="Windows" />
I can normally see the user identity in the following places:
System.Web.HttpContext.Current.User.Identity.Name
User.Identity.Name
Thread.CurrentPrincipal.Identity.Name
But on IIS8 they all come up empty.
Any ideas where to look, or how to configure IIS8 or my application to find the useridentity ?
is what you need. Web API is free of System.Web so it behaves differently.