【发布时间】:2017-12-11 08:08:21
【问题描述】:
我有一个示例 wcf 服务,我想要一个端点是 windows 身份验证的安全性,我的配置是这样的,在 iis 中,windows 和任何身份验证都已启用。但我可以直接调用我的端点,没有用户信息我的呼叫代码?我缺少什么?我想定义多个端点,这些端点可以是不同的身份验证类型,因此我无法关闭匿名身份验证。
我的第二个问题是,端点可以在 Windows 身份验证中为特定用户工作吗?
ServiceReference1.Service1Client sclient = new ServiceReference1.Service1Client(); var x= sclient.GetData(1);
</security> </binding> </wsHttpBinding> </bindings> <services> <service name="Service"> <endpoint address="" binding="wsHttpBinding" bindingConfiguration="WsHttpBindingConfig" contract="IService"> <!--<identity> <userPrincipalName value="xxxxxxx" /> </identity>--> </endpoint> </service> </services> <behaviors
【问题讨论】:
标签: wcf wcf-security