WIF - claims-based identity

简介: 最近使用了Sharepoint 2010的开发,其中包括一个新的服务STS,看了一下,主要资料如下: 现有的认证授权如Memebership的开发支持已经比较完善了,之所以引入WIF,主要是通过间接的形式抽象,使认证和授权在分布式环境下更易使用。

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

现有的认证授权如Memebership的开发支持已经比较完善了,之所以引入WIF,主要是通过间接的形式抽象,使认证和授权在分布式环境下更易使用。

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过程

image

WIF的过程

 

image

identity providers (IP).

relying party (RP)

STS (Security Token Service).

WIF的具体过程:

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

     http://www.cloudidentity.net

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

相关文章
vue3+vite项目中使用svg图标
vue3+vite项目中使用svg图标
2580 1
|
SQL IDE Java
IDEA控制台如何查看格式化的SQL(MyBatis Log插件)
IDEA控制台如何查看格式化的SQL(MyBatis Log插件)
3677 0
|
6月前
|
存储 运维 安全
构建企业级数据安全防线:基于阿里云KMS的加密硬件网关接入与实战
本文剖析内网入侵事件,提出“固信零信任加密网关+阿里云KMS硬件密钥管理”融合方案,构建客户端认证、IP白名单、进程绑定、硬件加密四维防护体系,实现终端可信、访问可控、密钥硬件化、审计可追溯的立体数据安全。
构建企业级数据安全防线:基于阿里云KMS的加密硬件网关接入与实战
|
存储 Java Android开发
OpenCV3 安卓应用编程:1~6 全
OpenCV3 安卓应用编程:1~6 全
419 0
|
8月前
|
人工智能 Linux API
AI龙虾 OpenClaw 11种高阶实战玩法+阿里云/本地全平台部署+大模型配置完整指南
2026年,OpenClaw(Clawdbot,社区昵称“龙虾”)已经成为最普及的开源AI智能体引擎,但绝大多数用户在部署完成后,仅将其作为简单对话工具使用,完全没有发挥其真正价值——**自动执行任务、处理文件、联网检索、多平台接入、定时调度、内容生产、副业变现**。本文完整保留11种高阶用法的核心逻辑,不改变原意,同时新增**2026阿里云服务器零基础部署**、**MacOS/Linux/Windows11本地部署**、**阿里云千问大模型API配置**、**免费Coding Plan大模型对接**,并提供可直接复制的代码命令、高频常见问题解答与避坑指南,全文无营销词汇、无禁用平台名称
1166 0
|
9月前
|
人工智能 数据可视化 安全
2026年OpenClaw(原 Clawdbot)钉钉对接保姆级教程 手把手教你打造自己的 AI 助手
在AI办公自动化普及的2026年,OpenClaw(原Clawdbot、Moltbot)作为阿里云生态下热门的开源AI代理工具,凭借持久记忆、任务自动化执行、多工具集成的核心优势,成为个人与企业打造专属AI助手的首选。而钉钉作为国内主流的办公协同平台,与OpenClaw的无缝对接,能让AI助手突破Web控制台的限制,直接嵌入日常办公场景——群聊中@机器人即可生成会议纪要、私聊发送指令完成文件处理、定时推送工作提醒,真正实现“办公指令一句话,AI代劳省时间”。
4897 5
|
人工智能 自然语言处理 前端开发
Spring AI与DeepSeek实战二:打造企业级智能体
本文介绍如何基于Spring AI与DeepSeek模型构建企业级多语言翻译智能体。通过明确的Prompt设计,该智能体能自主执行复杂任务,如精准翻译32种ISO标准语言,并严格遵循输入格式和行为限制。代码示例展示了如何通过API实现动态Prompt生成和翻译功能,确保服务的安全性和可控性。项目已开源,提供更多细节和完整代码。 [GitHub](https://github.com/zlt2000/zlt-spring-ai-app) | [Gitee](https://gitee.com/zlt2000/zlt-spring-ai-app)
1411 11
|
存储 物联网 数据处理
什么数据中心最好?盘点全球十大数据中心!
在数字时代,数据中心作为关键基础设施,支撑着商业和社会的高效运转。从AWS、谷歌、微软到阿里云、苹果等巨头的数据中心,它们各具特色,涵盖高性能计算、液冷技术、绿色节能和高安全性等领域。这些“超级堡垒”不仅保障了在线交易、远程教育、智慧医疗等服务的稳定运行,还推动了云计算、大数据和物联网的发展,极大提升了社会效率和生活质量。每个数据中心根据自身优势,在不同应用场景中发挥着不可替代的作用,共同构建了数字化世界的基石。
1803 1
|
缓存 JavaScript 前端开发
JavaScript框架中的性能优化策略
【7月更文挑战第27天】JavaScript框架中的性能优化是一个持续的过程,需要开发者在开发过程中不断关注和改进。通过代码优化、DOM操作优化、缓存机制、异步处理以及使用性能分析工具等策略,可以显著提升应用的性能,提升用户体验。在实际开发中,开发者应根据应用的具体需求和性能瓶颈选择合适的优化策略,以实现最佳的优化效果。
|
安全 芯片
正点原子T100智能焊台-试用-拆机测评
正点原子T100智能焊台-试用-拆机测评
1419 2
正点原子T100智能焊台-试用-拆机测评

热门文章

最新文章