The most common implementation in .NET to get authenticated Windows account under which process is running is to get via
WCF stores information about the identity of the remote client via
class. It’s two most important properties are:
– This is the identity used by the remote party for authentication while accessing the service.
– This is the WindowsIdentity object representing the Windows Account information used for Windows Authentication.
We can access the
instance from WCF service operation using the static Current property of ServiceSecurityContext class, i.e.:
Thus, WindowsIdentity is at basic level and a part of identity when used via WCF.
For full details, refer: Identity & ServiceSecurityContext in WCF