From 53d02b05d596c2b68eecc565ea42d3396479a213 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Mon, 4 Mar 2024 03:18:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8F=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5?= =?UTF-8?q?=D0=B9=D1=81=D0=BE=D0=B2=20=D0=B8=D0=B7=20=D0=B1=D0=B8=D0=B1?= =?UTF-8?q?=D0=BB=D0=B8=D0=BE=D1=82=D0=B5=D0=BA=D0=B8=20=D0=B2=20=D1=82?= =?UTF-8?q?=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../administrator/src/Table/ClientTable.php | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/com_oauthserver/administrator/src/Table/ClientTable.php b/com_oauthserver/administrator/src/Table/ClientTable.php index a6d0fdb..db0f74a 100644 --- a/com_oauthserver/administrator/src/Table/ClientTable.php +++ b/com_oauthserver/administrator/src/Table/ClientTable.php @@ -4,19 +4,20 @@ namespace Webmasterskaya\Component\OauthServer\Administrator\Table; use Joomla\CMS\Table\Table; use Joomla\Database\DatabaseDriver; +use League\OAuth2\Server\Entities\ClientEntityInterface; /** * @property int $id * @property string $name * @property string $identifier * @property string|null $secret - * @property bool $public + * @property int $public * @property string|null $redirect_uri - * @property bool $allow_plain_text_pkce + * @property int $allow_plain_text_pkce * * @since version */ -class ClientTable extends Table +class ClientTable extends Table implements ClientEntityInterface { /** * Constructor. @@ -29,4 +30,24 @@ class ClientTable extends Table { parent::__construct('#__webmasterskaya_oauthserver_clients', 'id', $db); } + + public function getIdentifier() + { + return $this->identifier; + } + + public function getName() + { + return $this->name; + } + + public function getRedirectUri() + { + return $this->redirect_uri; + } + + public function isConfidential() + { + return !$this->public; + } } \ No newline at end of file