mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 21:19:46 +05:30
Change to throw invalid scope instead of missing scope exception
This commit is contained in:
parent
b2fe909a71
commit
4806eda45a
@ -246,7 +246,7 @@ abstract class AbstractGrant implements GrantTypeInterface
|
||||
}
|
||||
|
||||
if (empty($validScopes)) {
|
||||
throw OAuthServerException::missingScope($redirectUri);
|
||||
throw OAuthServerException::invalidScope($redirectUri);
|
||||
}
|
||||
|
||||
return $validScopes;
|
||||
|
Loading…
Reference in New Issue
Block a user