.net 自托管WCF数据服务身份验证
我以类似的方式建立了自托管WCF数据服务- 如何在此基础上添加Windows身份验证 我知道如何将其添加到IIS中,但我无法理解自托管场景.net 自托管WCF数据服务身份验证,.net,wcf,wcf-data-services,self-hosting,.net,Wcf,Wcf Data Services,Self Hosting,我以类似的方式建立了自托管WCF数据服务- 如何在此基础上添加Windows身份验证 我知道如何将其添加到IIS中,但我无法理解自托管场景 提前谢谢 诀窍是使用app.config并在那里配置所有安全设置…: <?xml version="1.0" encoding="utf-8"?> <configuration> <system.serviceModel> <bindings> <webHttpBinding>
提前谢谢 诀窍是使用app.config并在那里配置所有安全设置…:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<bindings>
<webHttpBinding>
<binding name="MyBindingName" >
<security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>
</webHttpBinding>
</bindings>
<services>
<service name="{you service type name including the namespace i.e. myapplication.myservice}">
<endpoint address="" binding="webHttpBinding" bindingConfiguration="MyBindingName" contract="System.Data.Services.IRequestHandler">
</endpoint>
</service>
</services>
</system.serviceModel>
</configuration>
有关详细答案,请参阅