Added access denied exception

This commit is contained in:
Alex Bilbie 2016-01-17 12:58:00 +00:00
parent f44b618531
commit 7242a8db31

View File

@ -191,6 +191,18 @@ class OAuthServerException extends \Exception
return new static('The refresh token is invalid.', 'invalid_request', 400, $hint); return new static('The refresh token is invalid.', 'invalid_request', 400, $hint);
} }
/**
* Access denied
*
* @param null|string $hint
*
* @return static
*/
public static function accessDenied($hint = null)
{
return new static('The resource owner or authorization server denied the request.', 401, $hint);
}
/** /**
* @return string * @return string
*/ */