【问题标题】:WCF Windows Authenticated EndpointWCF Windows 身份验证终结点
【发布时间】: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


    【解决方案1】:

    我认为,您应该编辑您的合同名称。它通常在你的 webservice 包下,像这样 WebServiceName.IService

    【讨论】:

      猜你喜欢
      • 2011-07-22
      • 1970-01-01
      • 2015-06-13
      • 2012-03-24
      • 1970-01-01
      • 2011-10-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多