开发者

Invoking a WCF service using claims based authentication

开发者 https://www.devze.com 2023-01-03 05:32 出处:网络
I have a WCF service deployed in a server machine. We are using 开发者_开发知识库claims based authentication to authenticate the WCF service caller. The WCF service is restricted by using IIS Authoriz

I have a WCF service deployed in a server machine. We are using 开发者_开发知识库claims based authentication to authenticate the WCF service caller. The WCF service is restricted by using IIS Authorization rules.

How do I programmatically invoke the WCF service using .NET? The client app uses a proxy generated using SVCUtil. calling the service reads the credentials from a configuration file (not the app.config file, in fact the client application does not have a *.config file).


Take a look at this blog posting from LeastPrivilege:

http://leastprivilege.com/2010/02/15/securing-wcf-data-services-using-wif/

While the blog goes into specifics of using WIF the only difference should be the token obtained to access the service.

0

精彩评论

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

关注公众号