开发者

Configure WCF host for windows integrated security

I have WCF service hosted on IIS7.5 running as anonymous - authentication, Please let me know the configuration/开发者_C百科steps to run on windows integrated security. Thanks


Well the nice thing about NetTcpBinding is that it is secured using Transport security, Windows authentication by default. So all you need to do is use it. Your server binding would look something like this:

<service name="YourServiceNameHere">
  <host>
    <baseAddresses>
      <add baseAddress="net.tcp://machineName/VirtualDirectory/"/>
    </baseAddresses>
  </host>

  <endpoint
    address=""
    binding="netTcpBinding"
    contract="YourServiceContractHere" />
</service>

Here is an MSDN article that goes more in depth. In IIS, you need to enable net.tcp, and enable Windows authentication.

Configure WCF host for windows integrated security

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜