0

I am using a windows identity impersonation on a WCF service. Is it necessary to call identity.Impersonate() each time when I need impersonation, or can WCF do it for me? If it can, then what configuration should I specify?

4

1 回答 1

1

您可以使用allowedImpoersonationLevel以下windows元素在客户端配置中进行设置:

<windows allowedImpersonationLevel="Identification/Impersonation/Delegation/Anonymous/None"
    allowNtlm="Boolean"/>

此页面解释了更多内容,并向您展示了此元素在配置文件中的位置。 http://msdn.microsoft.com/en-us/library/ms731356(v=vs.100).aspx

于 2013-10-09T21:33:14.043 回答