首页 \ 问答 \ Rails授权插件(Rails authorization plugins)

Rails授权插件(Rails authorization plugins)

我们正在评估Rails中的Authorization插件。 列表顶部的两个是cancan和declarative_authorization。

我想从当前使用这些插件的任何人那里获得一些反馈。

我们将面临的任何授权插件的问题是我们每个客户模型都有一个数据库,并且需要修改插件才能在该模型中工作。 因为这个事实,我有兴趣听到任何人不得不调整插件。

我刚开始环顾四周的代码。 似乎cancan可能更容易定制。

有什么想法吗?


We are evaluating plugins for Authorization in Rails. The two at the top of our list are cancan and declarative_authorization.

I would like to get some feedback from anyone currently using either of these plugins.

The problem we are going to face with any authorization plugin is that we have a database per customer model and will need to modify the plugin to work within that model. Because of this fact I'm interested in hearing from anyone who has had to tweak the plugins at all as well.

I'm just starting to look around at the code. It seems like cancan might be a little easier to customize.

Any thoughts?


原文:https://stackoverflow.com/questions/2753595
更新时间:2023-11-01 10:11

最满意答案

 The requested resource (/HS/index.jsp) is not available.

index.jsp应该始终位于WEB-INF目录的根目录下。 试着把它放在那里尝试一下。


 The requested resource (/HS/index.jsp) is not available.

The index.jsp should always be at the root of the WEB-INF directory. Try to put it there and give a try.

相关问答

更多
  • Apache和Tomcat有不同的用途。 你不能使用Apache来运行Struts,因为它只是一个web服务器,而不是一个java web容器。 你可以做的是将Apache设置为tomcat实例的反向代理,因此“Internet”会与你的Apache进行通信,但Tomcat仍然会为你的请求提供服务。 Apache and Tomcat serve different purposes. You cannot use Apache to run Struts because it's just a web s ...
  • 正如文档所展示的,不是tab尝试tabs : $( ".selector" ).tabs ( { show: { effect: "blind", duration: 800 } } ); 但是,我不能从文档中完全理解tabs()需要哪些参数,所以不能保证是否这样 $("#mytabs").on('click',function() { $(this).tabs('show') }); 就足够了。 Instead of tab try tabs, as docs demonstrates: ...
  • 我认为你很困惑:Struts2放在堆栈中的不是属性,而是包含这些属性的对象。 让我们在你写的jsp中说 然后Struts2将在您的堆栈中迭代以查找具有属性xxx的对象,即具有公共方法getXxx() 。 Struts2将当前操作( SampleAction一个实例)放在堆栈顶部。 因此,它将首先搜索SampleAction.getXxx()方法 - 如果没有找到,它将在堆栈中向下看。 (实际上你可以将其他对象放在堆栈中,在Action之上 - 也许在 ...
  • 问题已修复。 我更改httpd.conf文件 AllowOverride全部 Problem fixed. I change httpd.conf file AllowOverride All
  • 主要问题: 工作流程应该是这样的,如果输入的字符串不是数字,首先它应该通过一个异常拦截器,并且在通过param拦截器时,在转换为int类型时,它不能使用Integer来完成。 parseInt和一个异常会发生,数字格式异常的异常应该被推入值栈?为什么它不显示numberformatexception并显示结果,即使结果不应被打印,而不是? 概念 Struts 2自动处理转换错误和验证错误 :它不会引发异常,因为它们不会阻止错误 ,但会输入错误 ,因此继续执行的最佳方式是通知用户输入提交错误,请求他为新的,有 ...
  • 看起来我没有看到CategoryEnum类(只有.class不附带.java)。 CategoryEnum类虽然是一个枚举,但值是它们自己的类,因此在它上调用toString()将允许我比较每个类中的值。 snip It seem that I didn't loo ...
  • The requested resource (/HS/index.jsp) is not available. index.jsp应该始终位于WEB-INF目录的根目录下。 试着把它放在那里尝试一下。 The requested resource (/HS/index.jsp) is not available. The index.jsp should always be at the root of the WEB-INF directory. Try to put it there and g ...
  • Struts2提供的JSF插件为JavaServer Faces组件提供支持,无需额外配置。 只需浏览插件文档,就可以了解插件如何集成JSF和Struts2 Struts2-JSF插件 Struts2 provides JSF Plugin provides support for JavaServer Faces components with no additional configuration. Just go through the Plugin documentation to get an i ...
  • 你想错了方向。 Struts2中有一个Struts1插件实际上包含了Struts1动作。 所以,代码看起来像 com.mycompany.myapp.ContactsListAction contactsList.jsp 对于您的问题,即 ...
  • 试试以下代码: public boolean onOptionsItemSelected(MenuItem item) { String admin = "shcherbuk96@mail.ru"; String email=null; switch (item.getItemId()) { case R.id.settings_item_1: email=FirebaseAuth ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。