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 (visitors)
- A Site User could accidentally get elevated permissions
- The users are more accurately defined as different types than different roles
- The two user types are stored in separate databases/tables
- One user of each type could be signed in simultaneously
- Different types of information are needed for the two user types
- Refactoring that would need to take place on existing code