I have a WCF service that must meet the following requirement:
- Endpoint1: it should use netTCP binding with Windows authentication.
- Endpoint2: it should use netTCP binding with username and password verification.
I was able to perform both of these steps individually, creating two service behaviors: one for Windows authentication and one for username and password, but in this way I have to set 2 services instead of 1 for the above functions. I am looking for a way by which I could expose only one service and another configuration of endpoints, I can fulfill this requirement.
Useful code snippet and configuration.
source share