开发者

Simple client identification in WCF

开发者 https://www.devze.com 2023-01-13 15:46 出处:网络
I\'m using a self-hosted WCF service with duplex tcp binding without any kind of security. I\'d like to transport a username and password from the client so the server code can check for validity. How

I'm using a self-hosted WCF service with duplex tcp binding without any kind of security. I'd like to transport a username and password from the client so the server code can check for validity. How do I do that? The main goal is to keep it simple.

My idea was to set the binding.ClientCredentials property when establishing the connection, but I don't see how I can access these properties in 开发者_运维问答the server code.

0

精彩评论

暂无评论...
验证码 换一张
取 消