How to secure a WCF service using NetNamedPipesBin

2019-08-16 15:16发布

I'm using a WCF service with the NetNamedPipesBinding to communicate between two AppDomains in my process.

How do I secure the service so that it is not accessible to other users on the same machine?

I have already taken the precaution of using a GUID in the Endpoint Address, so there's a little security through obscurity, but I'm looking for a way of locking the service down using ACL or something similar.

3条回答
男人必须洒脱
2楼-- · 2019-08-16 15:21

you can use WCF authentication. One of the options is to validate against the windows username and password. If you use active directory, you can use that too (harder to set up, put less of a burden). http://blogs.msdn.com/pedram/archive/2007/10/05/wcf-authentication-custom-username-and-password-validator.aspx.

查看更多
老娘就宠你
4楼-- · 2019-08-16 15:36

WCF NetNamedPipesBinding has only Transport Security

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

Is this a shared PC? Do you have several users logging on locally to the same physical machine?

查看更多
登录 后发表回答