mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Remove client secret propety on entity
This commit is contained in:
		| @@ -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; | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user