惨惨创业板MVC .NET [英] CanCan gem for MVC .NET

查看:157
本文介绍了惨惨创业板MVC .NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找的NuGet包,提供类似的功能在轨康康舞宝石( https://github.com/ryanb/cancan )。

I am looking for NuGet package that provides similar functionality as the CanCan gem in rails ( https://github.com/ryanb/cancan ).

有谁知道一个插件,它提供了类似的功能?或简单的方式来实现这一点?

Does anyone know a plugin that provides a similar functionality? Or a simple way to implement this?

感谢

推荐答案

很长很长的搜索,我发现这些文章很有用后:

After a long long search I found these essays useful:

http://msdn.microsoft.com/en-us/library/ ff359101.aspx
http://www.$c$cproject.com/Articles/639458/Claims-Based-Authentication-and-Authorization
<一href=\"http://www.$c$ctails.com/punitganshani/using-claims-identity-with-simplemembership-in-asp-net-mvc/20130525\" rel=\"nofollow\">http://www.$c$ctails.com/punitganshani/using-claims-identity-with-simplemembership-in-asp-net-mvc/20130525

http://leastprivilege.com/ 结果
http://www.postsharp.net/aspects/examples/security

更新结果
微软最新的2013版本中引入:<一href=\"http://blogs.msdn.com/b/webdev/archive/2013/06/27/introducing-asp-net-identity-membership-system-for-asp-net-applications.aspx\" rel=\"nofollow\">http://blogs.msdn.com/b/webdev/archive/2013/06/27/introducing-asp-net-identity-membership-system-for-asp-net-applications.aspx

样品:结果
http://stackoverflow.com/a/18751036/316343 结果
https://github.com/rustd/AspnetIdentitySample
http://msdn.microsoft.com/en-us/library/hh377151.aspx

我preFER在$ C $的CProject教程中使用的是基于框架从Thinktecture家伙,源$ C ​​$ C,请访问:结果
https://github.com/brockallen/BrockAllen.Membershi$p$pboot
https://github.com/thinktecture/Thinktecture.IdentityModel.45

I prefer the one used in CodeProject tutorial which is based on frameworks from Thinktecture guys, source code is available at:
https://github.com/brockallen/BrockAllen.MembershipReboot https://github.com/thinktecture/Thinktecture.IdentityModel.45

只要记住,$ C $的CProject文章但从持久点过时。结果
现在Membershi $ P $加载操作系统支持的EntityFramework,MongoDB的和RavenDB作为数据存储。

Just remember that the CodeProject article is outdated from the persistence point of view.
Now MembershipReboot support EntityFramework, MongoDB and RavenDB as data store.

这篇关于惨惨创业板MVC .NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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