mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-18 17:42:54 +05:30
Add isConfidential function to client entity trait
This commit is contained in:
parent
838f206832
commit
d07b5a4a03
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user