mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-30 10:42:02 +05:30
Removed the missing scope exception as should be using invalid_scope
This commit is contained in:
parent
d0619385b8
commit
b2fe909a71
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user