0
我已經自承載WCF數據服務類似的方式設立本 - http://blogs.msdn.com/b/writingdata_services/archive/2011/01/24/self-hosting-a-wcf-data-service.aspx自託管WCF數據服務認證
怎樣才能在此之上添加Windows身份驗證?
我知道如何將它添加在IIS但自託管場景逃避我...
提前感謝!
我已經自承載WCF數據服務類似的方式設立本 - http://blogs.msdn.com/b/writingdata_services/archive/2011/01/24/self-hosting-a-wcf-data-service.aspx自託管WCF數據服務認證
怎樣才能在此之上添加Windows身份驗證?
我知道如何將它添加在IIS但自託管場景逃避我...
提前感謝!
的技巧是使用的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>
詳細答案見this question。