Change to throw invalid scope instead of missing scope exception

This commit is contained in:
Andrew Millington 2017-10-31 22:59:01 +00:00
parent b2fe909a71
commit 4806eda45a

View File

@ -246,7 +246,7 @@ abstract class AbstractGrant implements GrantTypeInterface
}
if (empty($validScopes)) {
throw OAuthServerException::missingScope($redirectUri);
throw OAuthServerException::invalidScope($redirectUri);
}
return $validScopes;