none
How to setup different authentication for different endpoint RRS feed

  • Question

  • suppose i have tcp and http end point then how can i setup digest auth for tcp and username password auth for http endpoint. please give me sample code which i can download and run in my pc or give me relevant article links.
    Tuesday, December 13, 2016 7:20 PM

Answers

  • Hi Mou_kolkata,

    For netTcpBinding, we could only use Windows and Certificate client credential. There is no digest authentication for netTcpBinding.

    For different security of different endpoints, you could define multiple endpoints with different binding configuration.

          <basicHttpBinding>
            <binding name="username">
              <security mode="Message">
                <message clientCredentialType="UserName"/>
              </security>
            </binding>      
          </basicHttpBinding>
          <netTcpBinding>
            <binding name="digest">
              <security mode="Transport">
                <transport clientCredentialType="Windows"></transport>
              </security>
            </binding>
          </netTcpBinding>

    Best Regards,

    Edward


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Wednesday, December 14, 2016 9:17 AM