diff --git a/examples/src/Repositories/ClientRepository.php b/examples/src/Repositories/ClientRepository.php index af69cc2f..286964ac 100644 --- a/examples/src/Repositories/ClientRepository.php +++ b/examples/src/Repositories/ClientRepository.php @@ -44,7 +44,6 @@ class ClientRepository implements ClientRepositoryInterface $client = new ClientEntity(); $client->setIdentifier($clientIdentifier); $client->setName($clients[$clientIdentifier]['name']); - $client->setSecret($clients[$clientIdentifier]['secret']); return $client; } diff --git a/src/Entities/Interfaces/ClientEntityInterface.php b/src/Entities/Interfaces/ClientEntityInterface.php index c32d1e78..c0d0e812 100644 --- a/src/Entities/Interfaces/ClientEntityInterface.php +++ b/src/Entities/Interfaces/ClientEntityInterface.php @@ -15,19 +15,6 @@ interface ClientEntityInterface */ public function setIdentifier($identifier); - /** - * Get the client's secret - * @return string - */ - public function getSecret(); - - /** - * Set the client's secret - * @param string $secret - * @return string - */ - public function setSecret($secret); - /** * Get the client's name * @return string diff --git a/src/Entities/Traits/ClientEntityTrait.php b/src/Entities/Traits/ClientEntityTrait.php index 46528f21..fee28e0e 100644 --- a/src/Entities/Traits/ClientEntityTrait.php +++ b/src/Entities/Traits/ClientEntityTrait.php @@ -3,35 +3,11 @@ namespace League\OAuth2\Server\Entities\Traits; trait ClientEntityTrait { - /** - * @var string - */ - protected $secret; - /** * @var string */ protected $name; - /** - * Get the client's secret - * @return string - */ - public function getSecret() - { - return $this->secret; - } - - /** - * Set the client's secret - * @param string $secret - * @return string - */ - public function setSecret($secret) - { - $this->secret = $secret; - } - /** * Get the client's name * @return string