none
TCP Services run or authenticate with another user RRS feed

  • Question

  • Bonjour! I have a windows app in C# using TCP service to call services for another Application. I would like that the TCP services runs with a specific credentails, that way the users that will have access to my app will need to have rights on the system that runs the TCP Services.

    Can we do that easily??

    <endpoint address="net.tcp://zzz:50200/Services/Security/CMS/"

                   binding="netTcpBinding" bindingConfiguration="AccessRights_Tcp"
                    contract="AccessRightsServices.AccessRights" name="AccessRights_Tcp">
                      <identity> 

                        <userPrincipalName value=""/>
                    </identity>

                </endpoint>

    Regards, Joel
    • Moved by Caillen Wednesday, July 16, 2014 6:37 AM
    Tuesday, July 15, 2014 1:35 PM

Answers

  • Hi,

    If you want your TCP services to run with a specific credentails, and the users who want to access the service will need to provide the right credentails. Then I will recommand you use the Windows authentication or the UserName authentication.

    For more information, please try to refer to the following articles:
    #How to: Use netTcpBinding with Windows Authentication:
    http://msdn.microsoft.com/en-us/library/ff647180.aspx .

    #WCF Security: NetTcpBinding with custom UserName/Password authentication:
    http://blog.rees.biz/2011/02/wcf-security-nettcpbinding-with-custom.html .


    Best Regards,
    Amy Peng

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, July 16, 2014 8:00 AM
    Moderator

All replies