开发者

How can i Send response to authorize client?

开发者 https://www.devze.com 2023-02-25 11:10 出处:网络
Just finished my first WCF service. I want to limit the client to get service from my WCF serv开发者_开发百科er - so i want to response just to client that have the right password ( password will se

Just finished my first WCF service.

I want to limit the client to get service from my WCF serv开发者_开发百科er - so i want to response just to client that have the right password ( password will send as string in one of the argument field ) or just response to client that have specific ip address.

How can i do it in WCF ?

Thanks for any help.


The "normal" expected behavior would be for the WCF service to:

  • return a valid result for those users who are authorized to call that service
  • throw a FaultException (possibly a typed FaultException<SecurityNegotiationException>) for those users who are not authorized
0

精彩评论

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