mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Add isConfidential function to client entity trait
This commit is contained in:
@ -21,6 +21,11 @@ trait ClientTrait
|
|||||||
*/
|
*/
|
||||||
protected $redirectUri;
|
protected $redirectUri;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
protected $isConfidential;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the client's name.
|
* Get the client's name.
|
||||||
*
|
*
|
||||||
@ -43,4 +48,14 @@ trait ClientTrait
|
|||||||
{
|
{
|
||||||
return $this->redirectUri;
|
return $this->redirectUri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if the client is confidential.
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function isConfidential()
|
||||||
|
{
|
||||||
|
return $this->isConfidential;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user