/** * Create a local OAuth account record. * * @param string $guid * @param string $password * * @return Storage\Entity\Oauth */ protected function createLocalOauthAccount($guid, $password) { $oauth = $this->records->createOauth($guid, $guid, true); $oauth->setPassword($password); $this->records->saveOauth($oauth); return $oauth; }