mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-30 10:42:02 +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