From 4806eda45ae605bc5d58edd110c6a179576fa258 Mon Sep 17 00:00:00 2001 From: Andrew Millington Date: Tue, 31 Oct 2017 22:59:01 +0000 Subject: [PATCH] Change to throw invalid scope instead of missing scope exception --- src/Grant/AbstractGrant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Grant/AbstractGrant.php b/src/Grant/AbstractGrant.php index b52b14cb..bbb9efc0 100644 --- a/src/Grant/AbstractGrant.php +++ b/src/Grant/AbstractGrant.php @@ -246,7 +246,7 @@ abstract class AbstractGrant implements GrantTypeInterface } if (empty($validScopes)) { - throw OAuthServerException::missingScope($redirectUri); + throw OAuthServerException::invalidScope($redirectUri); } return $validScopes;