From b2fe909a71a2790d3f81404df431b30315ed5c88 Mon Sep 17 00:00:00 2001 From: Andrew Millington Date: Tue, 31 Oct 2017 22:58:07 +0000 Subject: [PATCH] Removed the missing scope exception as should be using invalid_scope --- src/Exception/OAuthServerException.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/Exception/OAuthServerException.php b/src/Exception/OAuthServerException.php index 2258185f..45e03c07 100644 --- a/src/Exception/OAuthServerException.php +++ b/src/Exception/OAuthServerException.php @@ -195,21 +195,6 @@ class OAuthServerException extends \Exception ); } - /** - * Missing scope error - * - * @param null|string $redirectUri A HTTP URI to redirect the user back to - * - * @return static - */ - public static function missingScope($redirectUri = null) - { - $errorMessage = 'No scope was specified for this request'; - $hint = 'Set a default scope on the server if no scopes are passed in the request'; - - return new static($errorMessage, 11, 'missing_scope', 400, $hint, $redirectUri); - } - /** * @return string */