/** * Initialize consumer * * @throws Mage_Oauth_Exception */ protected function _initConsumer() { $this->_consumer = Mage::getModel('oauth/consumer'); $this->_consumer->load($this->_protocolParams['oauth_consumer_key'], 'key'); if (!$this->_consumer->getId()) { $this->_throwException('', self::ERR_CONSUMER_KEY_REJECTED); } }