Microsoft.IdentityModel VS System.IdentityModel [英] Microsoft.IdentityModel vs System.IdentityModel

查看:122
本文介绍了Microsoft.IdentityModel VS System.IdentityModel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用窗体身份验证和ASP.NET MVC 2。我看到一个命名空间Microsoft.IdentityModel提供了很多同样的事情其他的System.IdentityModel基于声明的授权系统上。

I'm working on a claims-based authorization system using Forms Authentication and ASP.NET MVC 2. I see that one namespace "Microsoft.IdentityModel" provides a lot of the same things as the other "System.IdentityModel".

<一个href=\"http://msdn.microsoft.com/en-us/library/system.identitymodel.claims.aspx\">System.IdentityModel

<一个href=\"http://msdn.microsoft.com/en-us/library/microsoft.identitymodel.claims.aspx\">Microsoft.IdentityModel

为什么这些2的命名空间单独存在,当出现功能重叠?

Why do these 2 namespaces exist seperately, when the functionality appears to overlap?

推荐答案

如果您使用的是基于声明认证/授权,那么你将需要使用Microsoft.IdentityModel因为这是Windows身份验证框架的一部分。

If you are using Claims Based authentication/authorization, then you will need to use Microsoft.IdentityModel as that is part of the Windows Identity Framework.

有关各地MVC2指导和使用WIF我会建议您检查出的工作,模式和做实践。他们有我作为一个起点,一个体面的MVC样本。

For guidance around MVC2 and using WIF I would recommend checking out the work that Patterns and Practices did. They have a decent MVC sample that I used as a starting point.

这篇关于Microsoft.IdentityModel VS System.IdentityModel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆