public function before() { parent::before(); // This will set up your server, and by default use your default DB connection $this->oauth = \OAuth2\Server::forge(); // Use this for a Mongo based connection // $this->oauth = \OAuth2\Server::forge(new \OAuth2\Model_Server_Mongo('default')); }