mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Updated stub client entity
This commit is contained in:
@ -53,7 +53,7 @@ class ClientEntity implements ClientEntityInterface
|
||||
*/
|
||||
public function setSecret($secret)
|
||||
{
|
||||
$this->secret = $secret;
|
||||
$this->secret = password_hash($secret, PASSWORD_DEFAULT);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -79,4 +79,14 @@ class ClientEntity implements ClientEntityInterface
|
||||
{
|
||||
return $this->redirectUri;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the hashed client secret
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSecret()
|
||||
{
|
||||
return $this->secret;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user