阅读背景:

如何以最简单的形式使用zf2 ACL和auth存储

来源:互联网 

Hi I need to use ACL in a situation where user can only login through third party service like facebook google etc and their are only two roles guest and user. Right now I am using \Zend\Authentication\Storage\Session() to store user object in session after authentication, but I don't want to apply checks on my every action to know the status of user. I want to keep it simple by using a simple access control list. I have checked many modules like zfcUser etc but they are far more complex than what I actually need. I tried to build my own ACL plugin but the documentation is not good enough and the tutorials on zf2 ACL are focusing on different cases. Hi I need to use ACL in a situation where user




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: