mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-08 21:14:00 +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)) {
|
if (empty($validScopes)) {
|
||||||
throw OAuthServerException::missingScope($redirectUri);
|
throw OAuthServerException::invalidScope($redirectUri);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $validScopes;
|
return $validScopes;
|
||||||
|
Loading…
Reference in New Issue
Block a user