setMVCFactory($MVCFactory); } /** * @param $clientIdentifier * @return \League\OAuth2\Server\Entities\ClientEntityInterface * @throws \Exception * @since version */ public function getClientEntity($clientIdentifier): ClientEntityInterface { /** @var \Webmasterskaya\Component\OauthServer\Administrator\Table\ClientTable $table */ $table = $this->getMVCFactory()->createTable('Client', 'Administrator'); $table->load(['identifier' => $clientIdentifier]); return $table; } public function validateClient($clientIdentifier, $clientSecret, $grantType) { // TODO: Implement validateClient() method. } }