简体   繁体   English

在WCF中检索调用应用程序名称

[英]Retrieve calling application name in wcf

有没有办法在wcf服务中检索调用应用程序的名称?

The ServiceSecurityContext would be the place to start, but I'd be very surprised if such a thing exists. ServiceSecurityContext将是开始的地方,但是如果存在这样的事情,我会感到非常惊讶。

If you require this by your client think about adding message headers and force them to insert a client application name, or - if you don't trust anybody - give them separate certificates and use them to find out "who" is calling you. 如果客户要求,可以考虑添加消息头,并强迫它们插入客户端应用程序名称,或者-如果您不信任任何人,请给他们单独的证书,并使用它们来查找“谁”正在呼叫您。

since wcf may be consumed by may different endpoints i dont belive that is the case. 由于WCF可能被不同的端点消耗,我不相信这种情况。 Heres a link to msdn for best practices on security for wcf, hope it helps. 这是指向 msdn的链接,以获取wcf的安全性最佳实践,希望对您有所帮助。

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

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