mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 21:19:46 +05:30
Fix bug where not specifying the bad scope
This commit is contained in:
parent
5f4ec6a154
commit
9273936009
@ -243,7 +243,7 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (empty($validScopes)) {
|
if (empty($validScopes)) {
|
||||||
throw OAuthServerException::invalidScope($redirectUri);
|
throw OAuthServerException::invalidScope('', $redirectUri);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $validScopes;
|
return $validScopes;
|
||||||
|
Loading…
Reference in New Issue
Block a user