mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Change to throw invalid scope instead of missing scope exception
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user