支持 Rails 3 的 RoR 授权插件 [英] Authorization plugins for RoR with Rails 3 support

查看:23
本文介绍了支持 Rails 3 的 RoR 授权插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请命名支持 Rails 3 的 RoR 授权插件,这是您认为最好的.

Please name RoR authorization plugins with Rails 3 support, which you think is the best.

推荐答案

您需要授权或身份验证插件吗?看来大家都在给你认证插件.

Do you need an Authorization or Authentication plugin? It seems that everyone is giving you Authentication plugin.

身份验证

使用其凭据验证用户,以便她可以进入系统

To verify user with its credentials so she can get in to the system

devise 是与 Rails 3 配合良好(开箱即用)的身份验证插件之一:

devise is one of Authentication plugin that works well (out of the box) with Rails 3:

授权

验证是否允许登录用户访问系统中的某些功能

To verify whether the logged in user is allowed to access certain feature in the system

以下是 Rails 中的授权插件列表(适用于 Rails 3).

Here are the list of Authorization plugin in Rails (that works well with Rails 3).

CanCan 更简单和直接.Decl_auth 更简洁,在某些阶段可能很难使用.希望有所帮助.

CanCan is much simpler and straight forward. Decl_auth is much cleaner and can get pretty difficult to work with at some stage. Hope that helps.

这篇关于支持 Rails 3 的 RoR 授权插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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