WIF - claims-based identity

最近使用了Sharepoint 2010的开发,其中包括一个新的服务STS,看了一下,主要资料如下:


With the inflationary growth of distributed systems and online businesses, in the last few years the increasing need for interoperable protocols that could tear down the walls between silos became clear. The big players in the IT industry got together and agreed on a set of common protocols that would support interoperable communications across different platforms. Some examples of those protocols are SOAP, WS-Security, WS-Trust, WS-Federation, Security Assertion Markup Language (SAML), and in more recent times, OpenID, OAuth, and other open protocols.Claims-based identity promotes separation of concerns at a level never achieved before in the identity management world.

Windows Identity Foundation (WIF) is Microsoft’s stack for claims-based identity programming. It is a new foundational technology which helps .NET developers to take advantage of the claims based approach for handing authentication, authorization, customization and in general any identity-related task without the need to write any low-level code.


经典的claims-based identity过程





identity providers (IP).

relying party (RP)

STS (Security Token Service).


1. WIF sits in front of your application in the ASP.NET pipeline. When an unauthenticated user requests a page, it redirects the browser to the identity provider pages.
2. Here the IP authenticates the user in whatever way it chooses (perhaps by showing a page with user name and password, using Kerberos, or in some other way). Then it manufactures a token with the required claims and sends it back.
3. The browser posts the token it got from the IP to the application, where WIF again intercepts the request.
4. If the token satisfies the requirements of the application (that is, it comes from the right IP, contains the right claims, and so on), the user is considered authenticated. WIF then drops a cookie, and a session is established.
5. The claims in the incoming token are made available to the application code, and the control is passed to the application.



■ The WIF product home page on http://www.microsoft.com/wif

  WIF Runtime 和 WIF SDK
■  The Identity Developer Training Kit at http://go.microsoft.com/fwlink/?LinkId=148795

■ The WIF team blog at http://blogs.msdn.com/card


■ The IdElement Show on Channel9: http://channel9.msdn.com/shows/Identity/

posted @ 2011-12-14 22:04  2012  阅读(1053)  评论(0编辑  收藏  举报