Silverlight 4 中基于声明的安全性
我们正在为我们的企业应用程序实施基于声明的安全方法。我一直在研究内置支持(使用 System.IdentityModel)以及 Windows Identity Foundation (WIF),但看起来都不支持 Silverlight 应用程序。我意识到 SL4 不支持 IPrincipal 等,但这并不意味着我们仍然不能进行基于声明的身份验证。
我是否缺少展示如何在 SL4 中执行此操作的示例或文档,或者我是否只能使用自行开发的解决方案?
We are implementing a claims-based approach to security for our enterprise applications. I've been looking at the built-in support (with System.IdentityModel) as well as Windows Identity Foundation (WIF) but it doesn't look like either support Silverlight applications. I realize that SL4 doesn't support IPrincipal et al, but that shouldn't mean we can't still do claims-based auth.
Am I missing samples or documentation showing how to do so in SL4 or am I left to a home-grown solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我最近发现最新版本的 WIF 培训套件包含一个示例应用程序,展示如何将 WIF 集成到 Silverlight 客户端中。它包括针对 Silverlight 运行时编译的 WIF IdentityModel 代码版本。虽然这不是一个理想的、甚至不是长期的解决方案,但它让我继续前进。
I recently discovered that the latest version of the WIF Training Kit contains a sample application showing how to integrate WIF into a Silverlight client. It includes a version of the WIF IdentityModel code compiled against the Silverlight runtime. While not an ideal or even long-term solution, it gets me going.
看看多米尼克的这个:
http://www.leastprivilege.com/UsingSilverlightToAccessWIFSecuredWCFServices.aspx
或此:
http://social.msdn.microsoft.com/Forums/en/Geneva/thread/fe890df3-8815-4d05-b293-d3c87f32e9e0
Have a look at this by Dominic:
http://www.leastprivilege.com/UsingSilverlightToAccessWIFSecuredWCFServices.aspx
or this:
http://social.msdn.microsoft.com/Forums/en/Geneva/thread/fe890df3-8815-4d05-b293-d3c87f32e9e0