/** * * @access public * @return void */ public function __construct() { $this->_auth = Zend_Auth::getInstance(); $this->_config = Zend_Registry::get('config'); $session = 'Auth_' . ucfirst($this->_config->geral->appid); $this->_auth->setStorage(new Zend_Auth_Storage_Session($session)); }
/** * */ public function __construct() { $this->_auth = Zend_Auth::getInstance(); $this->_config = Zend_Registry::get('config'); //Namespace de autenticacao da aplicacao $namespace = 'Auth_Admin_' . ucfirst($this->_config->general->appid); //Define storage da aplicacao $this->_auth->setStorage(new Zend_Auth_Storage_Session($namespace)); }
public function forceAuthenticate($userUuid) { // Get a reference to the singleton instance of Zend_Auth $this->_auth = Zend_Auth::getInstance(); // Set the storage interface $this->_auth->setStorage(new Glo_Auth_Storage_Session('Glo_Auth')); $storage = $this->_auth->getStorage(); $data = new stdClass(); $data->user_uuid = $userUuid; $storage->write($data); return; }
/** * Initialize namespace for auth */ public function __construct() { $this->_auth = Zend_Auth::getInstance(); $r = new ReflectionClass($this); $this->_auth->setStorage(new Zend_Auth_Storage_Session('Zend_Auth_' . $r->getName())); }
/** * Sets authentication up (used for auth changes such as the login) * * @return void */ protected function _generateAuthAdapter() { $this->_auth = Zend_Auth::getInstance(); $this->_auth->setStorage(new Zend_Auth_Storage_Session('RssProxy_Auth')); $this->_authadapter = new Zend_Auth_Adapter_DbTable(Zend_Db_Table::getDefaultAdapter(), 'users', 'user_name', 'user_pass', 'SHA1(?)'); }