锂访问控制 [英] Lithium Access Control
问题描述
我需要控制谁或什么角色可以访问什么页面或方法.类似于ASP MVC或Spring JAVA上的类和方法注释.
I need to control who or what role gets access to what page or what method. Something like the class and method anotations on ASP MVC or Spring JAVA.
我该如何用锂呢?
推荐答案
在Lihtium的核心上没有内置的完整ACL功能,因为没有真正解决ACL问题的方法.
There is no built-in complete ACL functionality on Lihtium's core, beauce there is no really solution to ACLs problem.
希望,在处理外部库和插件以扩展核心功能方面,Lithium是必不可少的.
Hopefully, Lithium is kick-ass when it comes to deal with external libraries and plugin to extend the core functionality.
看看 li3_access ,它是最完整,最灵活的插件或ACL,或者简单 解决方案.
Take a look to li3_access which is the most complete and flexible plugin or ACL out there, or simpler solutions.
如果仅需要指定哪些操作是公开的,哪些不是,您可以使用锂过滤器对其进行点印:阅读
If your only need is to specify which actions are public and which not, you can dot it using Lithium filters: Read the guide
PS:Zed Shaw-ACL已死 http://vimeo.com/2723800
PS: Zed Shaw - The ACL is Dead http://vimeo.com/2723800
这篇关于锂访问控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!