我应该使用 Zend_Auth 吗?
我的身份验证系统是非常定制的,我做了一些通常不做的事情,现在我可以注册、身份验证,并从我存储的会话中获取用户身份。
我的问题是,如果我可以用迄今为止构建的内容完成所有这些工作,是否有理由使用 Zend_Auth?我有兴趣知道 Zend_Auth 是否真的广告了我目前没有的任何内容。
那么 Zend_Auth 除了根据表对用户进行身份验证并记住用户的身份之外,还执行其他操作吗?
My authentication system is very customized, I do certain things that are not normally done, right now I can register, and authenticate, and get the user identity from a session that I store.
My question is if I can do all of these with what I have build so far, is there a reason to use Zend_Auth? What I'm interested to know is if Zend_Auth really ads anything that I currently don't have.
So does Zend_Auth do anything other than Authenticating the user against a table, and remembering the identity of the user?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Zend_Auth 不会再次构建 Auth 的全新概念。您可以通过扩展或重用 Zend_Auth_Adapter 来自定义用户周围的所有身份验证过程。
它可能添加的主要“+”是 Zend_Acl 集成可以帮助您根据角色限制某些用户对 Web 应用程序的某些模块的使用。
Zend_Auth won't build again a brand new concept of what Auth is. You can customize all the authentification process around a user by extending or reusing a Zend_Auth_Adapter.
The main "+" that it might add is the Zend_Acl integration that might help you to restrict the usage of some modules of your webapp to some users according to their role.