I have an application deployed on IIS 8 having forms authentication mode. Now there is a requirement where business wants to show a popup message and create an audit log if the Windows User and the Application user is different.
For this I want to get the Windows Logged in user on logincontrol of the applicaiton. I have tried many ways but nothing is helping.
Please guide me if it is possible or not.
Guys anyone.. Please help me...
I use this site as a reference:
http://richhewlett.com/2011/02/15/getting-a-users-username-in-asp-net/
(reposted summary in case site goes down)
Scenario 1: Anonymous Authentication in IIS with impersonation off.
Scenario 2: Windows Authentication in IIS, impersonation off.
Scenario 3: Anonymous Authentication in IIS, impersonation on
Scenario 4: Windows Authentication in IIS, impersonation on