diff --git a/com_oauthserver/site/src/Repository/AccessTokenRepository.php b/com_oauthserver/site/src/Repository/AccessTokenRepository.php new file mode 100644 index 0000000..656a654 --- /dev/null +++ b/com_oauthserver/site/src/Repository/AccessTokenRepository.php @@ -0,0 +1,40 @@ +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. + } +} \ No newline at end of file diff --git a/com_oauthserver/site/src/Repository/RefreshTokenRepository.php b/com_oauthserver/site/src/Repository/RefreshTokenRepository.php new file mode 100644 index 0000000..31ec9e3 --- /dev/null +++ b/com_oauthserver/site/src/Repository/RefreshTokenRepository.php @@ -0,0 +1,30 @@ +