c# - Thread.CurrentPrincipal.Identity.Name vs OperationContext.Current.ServiceSecurityContext.WindowsIdentity.Name -


I have a WCF service which authenticates Windows authentication users until I used Operation Contact yesterday . Present. Service Security Links Windows Identity Uses the current user service to get the name, but this unit has difficulty testing the test so I switch to the thread. Currently the principal. Recognise. To retrieve the user using the service. My question is, is there any difference between the two in some environment?

threads. Custom Principal. Identity can not be a valid user of your WCF. This may be the identity under which the WCF worker thread is being executed. For example, this may be an IIS user if you host your WCF in IIS.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -