我正在尝试了解如何使用 Windows 身份验证 (Active Directory) 来保护我的 Web 服务。我正在使用为 c# 4.0(vs 2010)提供的“新”模板,目前有这个,但我需要将它托管在 Windows 服务中 - 这可能吗?
我认为 WCF Rest clientCredentialType ="Windows" 实际上使用 IIS 来提供这种类型的安全性?
我搜索了互联网,发现了许多 C# 3.5 的示例,但没有找到提供给 vs 2010 C# 4.0 以创建休息服务的新模板。W
<standardEndpoints>
<webHttpEndpoint>
<standardEndpoint name="" helpEnabled="true"
automaticFormatSelectionEnabled="true">
<security mode="">
<transport clientCredentialType = "Windows" />
</security>