Typo: Where I said Zend_Auth_Adapter_Db, it should have been Zend_Auth_Adapter_DbTable of course.
From: [email protected] To: [email protected] Date: Sat, 14 Mar 2009 17:36:28 +0000 Subject: [fw-general] Should Zend_Auth implement Zend_Acl_Role_Interface? 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 Meer dan chatten alleen. Check nu de nieuwe Windows Live _________________________________________________________________ Jouw nieuws en entertainment, vind je op MSN.nl! http://nl.msn.com/
