基于角色的访问控制 [英] Role Based Access Control

查看:29
本文介绍了基于角色的访问控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何开源的、基于PHP、基于角色的访问控制系统可用于CodeIgniter?

Are there any open source, PHP based, role based access control system that can be used for CodeIgniter?

推荐答案

Brandon Savage 介绍了他的 PHP 包ApplicationACL" 可能会也可能不会完成基于角色的访问.PHPGACL 也可以,但我不能肯定.

Brandon Savage gave a presentation on his PHP package "ApplicationACL" that may or may not accomplish role-based access. PHPGACL might work as well, but I can't tell you for sure.

不过,我可以告诉你的是 Zend_ACL 组件Zend Framework 将进行基于角色的设置(但是您必须子类化以一次检查多个角色).承认这样做的痛苦是您必须从整体下载(或 SVN 结帐)中取出 Zend_ACL,我认为它没有任何外部依赖项.

What I can tell you, however, is the Zend_ACL component of the Zend Framework will do role-based setups (however you'll have to subclass to check multiple roles at once). Granted the pain of this is you'll have to pull out Zend_ACL, I do not believe it has any external dependencies, from the monolithic download (or SVN checkout).

Zend_ACL 的好处在于它的存储不可知.您可以每次都重建它,也可以将其设计为序列化(我将两者结合使用,序列化缓存并从数据库重建).

The nice thing about Zend_ACL is though its storage agnostic. You can either rebuild it every time or it's designed to be serialized (I use a combination of both, serialize for the cache and rebuild from the DB).

这篇关于基于角色的访问控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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