Remove client secret propety on entity

This commit is contained in:
Alex Bilbie 2015-04-05 17:13:55 +01:00
parent 56f6df11a8
commit 26c1abdd3c
3 changed files with 0 additions and 38 deletions

View File

@ -44,7 +44,6 @@ class ClientRepository implements ClientRepositoryInterface
$client = new ClientEntity(); $client = new ClientEntity();
$client->setIdentifier($clientIdentifier); $client->setIdentifier($clientIdentifier);
$client->setName($clients[$clientIdentifier]['name']); $client->setName($clients[$clientIdentifier]['name']);
$client->setSecret($clients[$clientIdentifier]['secret']);
return $client; return $client;
} }

View File

@ -15,19 +15,6 @@ interface ClientEntityInterface
*/ */
public function setIdentifier($identifier); 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 * Get the client's name
* @return string * @return string

View File

@ -3,35 +3,11 @@ namespace League\OAuth2\Server\Entities\Traits;
trait ClientEntityTrait trait ClientEntityTrait
{ {
/**
* @var string
*/
protected $secret;
/** /**
* @var string * @var string
*/ */
protected $name; 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 * Get the client's name
* @return string * @return string