开发者

WCF Authentication & Authorization using Windows Identity Foundation

开发者 https://www.devze.com 2023-01-02 07:16 出处:网络
I am working on a asp.net mvc application and a WCF service which will be accessed by the mvc app. I am using WIF based STS website to do authentication and authorization on mvc app. Now I want to ach

I am working on a asp.net mvc application and a WCF service which will be accessed by the mvc app. I am using WIF based STS website to do authentication and authorization on mvc app. Now I want to achieve the same thing on each method of web service.

I am thinking whether I can pass the claims info I have in MVC App to the WCF to do authentication and authorization.开发者_JAVA百科 I dont want WCF to contact STS again for authentication. I cannot use windows authentication. I also want to make use of ClaimsAuthorizationManager to achieve this.

If anybody has some about it please share. It will be a big help for me.

Joe


  1. If your WCF Service is not REST, then maybe you can find the answer here Identity Delegation with AD FS 2.0 Step-by-Step Guide
  2. If your WCF Service is RESTful, check-out the example 8-ActiveRestClientFederation (download from Identity Guidance); Dominick Baier's guide Token-based Authentication for WCF REST Service and from Stefan's blog Secure your REST-based WCF service with WIF.

Hope this helps.

0

精彩评论

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