简体   繁体   English

使用NetNamedPipeBinding在Windows服务上托管的Wcf服务的安全性

[英]Security to Wcf Service hosted on windows service with NetNamedPipeBinding

我已经创建了一个WCF服务,该服务通过NetNamedPipeBinding协议托管在Windows服务上,现在我想为该服务提供安全性,因为只有已知用户名和密码的用户才能访问该服务,那么我该如何提供方法级别的身份验证用户访问此服务?

NetNamedPipe binding doesn't support message level security out of the box. NetNamedPipe绑定不支持开箱即用的消息级别安全性。 That would require custom binding. 那将需要自定义绑定。 NetNamedPipe binding works only when both service and client are running on the same machine so there is assumption that if user has permissions to log in and the service is running she have also permission to call it. NetNamedPipe绑定仅在服务和客户端都在同一台计算机上运行时才起作用,因此可以假设,如果用户具有登录权限并且该服务正在运行,那么她也有权调用它。 If you need to restrict users who can call the service you can always use custom authorization manager or role based security . 如果需要限制可以调用该服务的用户,则可以始终使用自定义授权管理器基于角色的安全性

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM