Retrieve calling application name in wcf
Is there a way to retrieve the calling application name in a wcf 开发者_StackOverflow社区service?
The ServiceSecurityContext would be the place to start, but I'd be very surprised if such a thing exists.
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. Heres a link to msdn for best practices on security for wcf, hope it helps.
精彩评论