mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2024-11-23 22:34:50 +03:00
throw exception on client not found
This commit is contained in:
parent
1bb5becef0
commit
f69f561687
@ -61,6 +61,11 @@ class ScopeRepository implements ScopeRepositoryInterface, DispatcherAwareInterf
|
|||||||
{
|
{
|
||||||
$client = $this->clientModel->getItemByIdentifier($clientEntity->getIdentifier());
|
$client = $this->clientModel->getItemByIdentifier($clientEntity->getIdentifier());
|
||||||
|
|
||||||
|
if ($client === false)
|
||||||
|
{
|
||||||
|
throw new \RuntimeException($this->clientModel->getError());
|
||||||
|
}
|
||||||
|
|
||||||
$scopes = $this->setupScopes($client, array_values($scopes));
|
$scopes = $this->setupScopes($client, array_values($scopes));
|
||||||
|
|
||||||
PluginHelper::importPlugin('oauthserver');
|
PluginHelper::importPlugin('oauthserver');
|
||||||
|
Loading…
Reference in New Issue
Block a user