views:

204

answers:

2

I have a WCF service that I expose using different endpoints, one of which uses NetNamedPipeBinding. The other endpoints use a custom username/password validator to authenticate users, but as far as I can tell, this is not supported by NetNamedPipeBinding.

How can I add a custom username/password authentication mechanism to a NetNamedPipeBinding with minimal impact on other endpoints?

A: 

With NetNamedPipeBinding has almost no security, since it only works if you are on the same machine. There is only transport level security.

http://msdn.microsoft.com/en-us/library/ms731699.aspx

Shiraz Bhaiji
A: 

I solved my problem by writing my own custom behavior. I read the article "Extending WCF with Custom Behaviors" which helped me write a message inspector which appends the username and password as message headers on the client side and verifies these on the service side.

Tormod Fjeldskår