mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2024-11-24 02:44:51 +03:00
Вернул отдельную реализацию Client Entity
This commit is contained in:
parent
b6381f74f0
commit
dc4b1734ab
46
com_oauthserver/site/src/Entity/Client.php
Normal file
46
com_oauthserver/site/src/Entity/Client.php
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Webmasterskaya\Component\OauthServer\Site\Entity;
|
||||||
|
|
||||||
|
use League\OAuth2\Server\Entities\ClientEntityInterface;
|
||||||
|
use League\OAuth2\Server\Entities\Traits\ClientTrait;
|
||||||
|
use League\OAuth2\Server\Entities\Traits\EntityTrait;
|
||||||
|
|
||||||
|
class Client implements ClientEntityInterface
|
||||||
|
{
|
||||||
|
use ClientTrait;
|
||||||
|
use EntityTrait;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
private $allowPlainTextPkce = true;
|
||||||
|
|
||||||
|
public function setName(string $name): void
|
||||||
|
{
|
||||||
|
$this->name = $name;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string[] $redirectUri
|
||||||
|
*/
|
||||||
|
public function setRedirectUri(array $redirectUri): void
|
||||||
|
{
|
||||||
|
$this->redirectUri = $redirectUri;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setConfidential(bool $isConfidential): void
|
||||||
|
{
|
||||||
|
$this->isConfidential = $isConfidential;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function isPlainTextPkceAllowed(): bool
|
||||||
|
{
|
||||||
|
return $this->allowPlainTextPkce;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setAllowPlainTextPkce(bool $allowPlainTextPkce): void
|
||||||
|
{
|
||||||
|
$this->allowPlainTextPkce = $allowPlainTextPkce;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user