I want to get user name using Windows authentication
Actually I implemented \"Sign in as different user\",when click this button Windows security will appear there w
You can read the Name from WindowsIdentity:
Name
WindowsIdentity
var user = System.Security.Principal.WindowsIdentity.GetCurrent().Name; return Ok(user);