Note that there are some explanatory texts on larger screens.

plurals
  1. PONeed complete example of authentication / authorization / access control in Zend Framework 1.9
    primarykey
    data
    text
    <p>I have some Zend Framework apps running and it's time to add user access restrictions. I am a firm believer that you should try to avoid rolling your own security infrastructure whenever possible and so I have been trying to figure out how to use Zend_Auth and Zend_Acl to implement it, so far without success.</p> <p>I have searched all over the net, and at least one book, and I can't find an example of how to string all of the parts together. I found an example of authentication <a href="http://weierophinney.net/matthew/archives/165-Login-and-Authentication-with-Zend-Framework.html" rel="nofollow noreferrer">here</a>, old examples of authorization / access control <a href="http://akrabat.com/zend-auth-tutorial/" rel="nofollow noreferrer">here</a> and <a href="http://devzone.zend.com/node/view/id/1665" rel="nofollow noreferrer">here</a>, and proposals for the future <a href="http://framework.zend.com/wiki/pages/viewpage.action?pageId=39025" rel="nofollow noreferrer">here</a>, <a href="http://devzone.zend.com/article/3509-Zend%5FAcl-and-MVC-Integration-Part-I-Basic-Use" rel="nofollow noreferrer">here</a>, and <a href="http://devzone.zend.com/article/3510" rel="nofollow noreferrer">here</a>, but I don't understand ZF well enough to put it all together in the present.</p> <p>What I need is this: a simple public example or tutorial that completely details [as downloadable and runnable code] how to use the current Zend Framework release (1.9.5, no "proposals" or "laboratories") to manage the authentication/authorization/access control of three users (and their passwords) in three different roles (e.g. guest, member, administrator) to protect three different controllers in the default module. The example should use as much of the current ZF library as possible. And no, this isn't homework; the stakes are higher than that :-(</p> <p>If it exists somewhere I haven't found it. Any help appreciated. IMO this would be very helpful for newcomers to ZF.</p> <p>Disclosure: I have a community wiki question on ZF <a href="https://stackoverflow.com/questions/1833145/why-is-zend-framework-so-popular">here</a> beause I'm trying to figure out if I'll continue with it. But I really need to get my apps running now!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload