Fix bug where not specifying the bad scope

This commit is contained in:
Andrew Millington 2017-11-18 18:46:03 +00:00
parent 5f4ec6a154
commit 9273936009

View File

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