我想了解如何使用Windows身份验证(Active Directory)来保护我的Web服务。我正在使用为c#4.0(vs 2010)提供的“NEW”模板,目前有这个,但我需要将其托管在Windows服务中 - 这可能吗?WCF REST:(C#4.0模板)使用Windows身份验证和托管在Windows服务中进行保护?
我认为WCF休息clientCredentialType =“窗口”实际上使用IIS来提供这种类型的安全?
我已经在网上搜索,发现与C#3.5的例子很多,但没有用于提供给VS 2010 C#4.0中的新模板,在VS 2010中创建一个休息service.W
<standardEndpoints>
<webHttpEndpoint>
<standardEndpoint name="" helpEnabled="true"
automaticFormatSelectionEnabled="true">
<security mode="">
<transport clientCredentialType = "Windows" />
</security>