Hi all, Currently (as far as I can tell) Zend_Auth only allows you to retrieve the identity of some authenticated entity. With Zend_Auth_Adapter_DbTable I would be able to retrieve this entity's roleId through getResultRowObject(). But this is not persistent (as in: is not stored in a storage mechanism like Zend_Auth's identity). Do you think it is fair to suggest that Zend_Auth should have the ability to store an identity's roleId for adapters that support this possibilty (such as Zend_Auth_Adapter_Db)?
My suggestion would be to have Zend_Auth implement Zend_Acl_Role_Interface so that it has a getRoleId method, which would return null or false if it is not available/unknown. What do you think? If you feel it is not Zend_Auth's responsibility to store an identity's roleId, where would you suggest this should be stored? A regular session perhaps? I would love to read your views on the matter. Cheers _________________________________________________________________ Download de nieuwste emoticons voor in je Messenger http://www.msnmessengerexperience.nl/chuck/
