zend-auth

Zend 2 + doctrine 2 Auth Adapter

眉间皱痕 提交于 2019-11-27 16:43:21
问题 I'm looking for a tutorial on authentication with Zend 2 and Doctrine 2. In particular the creation of the controller and adapter. The official documentation is too global not help me enough. thank you EDIT: i use "Doctrine Entity" (namespace User\Entity;) The Entity is register in module.config.php file : 'doctrine' => array( 'driver' => array( __NAMESPACE__ . '_driver' => array( 'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver', 'cache' => 'array', 'paths' => array(__DIR__ . '/..

Practical Zend_ACL + Zend_Auth implementation and best practices

可紊 提交于 2019-11-27 05:51:12
Context: My questions pertain to a forum I'm developing pretty much exactly like SO, where there are: guests who have access to view threads but can't reply or vote members who, with enough rep, can edit/vote others threads, and by default they can reply and have the same privileges as guests admins who can pretty much do anything I would want this ACL to be applied site-wide, and by default deny all resources. I read the basics of using Zend_Acl - in that you basically create roles ( guest, member, admin ) and either deny or allow resources ( controllers, methods ) to those roles. The

Multiple Instances (2) of Zend_Auth

坚强是说给别人听的谎言 提交于 2019-11-26 21:58:00
问题 I have a CMS built on the Zend Framework. It uses Zend_Auth for "CMS User" authentication. CMS users have roles and permissions that are enforced with Zend_Acl . I am now trying to create "Site Users" for things like an online store. For simplicity sake I would like to use a separate instance of Zend_Auth for site users. Zend_Auth is written as a singleton, so I'm not sure how to accomplish this. Reasons I don't want to accomplish this by roles: Pollution of the CMS Users with Site Users

Practical Zend_ACL + Zend_Auth implementation and best practices

淺唱寂寞╮ 提交于 2019-11-26 11:45:57
问题 Context: My questions pertain to a forum I\'m developing pretty much exactly like SO, where there are: guests who have access to view threads but can\'t reply or vote members who, with enough rep, can edit/vote others threads, and by default they can reply and have the same privileges as guests admins who can pretty much do anything I would want this ACL to be applied site-wide, and by default deny all resources. I read the basics of using Zend_Acl - in that you basically create roles ( guest