Added error codes and descriptions

This commit is contained in:
Alex Bilbie 2012-07-06 16:44:24 +01:00
parent 4eb0f8b596
commit 11c0a45bfb

View File

@ -10,6 +10,15 @@ class OAuthServerException extends Exception {}
class Server
{
protected $errors = array(
'invalid_request' => 'The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.',
'unauthorized_client' => 'The client is not authorized to request an access token using this method.',
'access_denied' => 'The resource owner or authorization server denied the request.',
'unsupported_response_type' => 'The authorization server does not support obtaining an access token using this method.',
'invalid_scope' => 'The requested scope is invalid, unknown, or malformed.',
'server_error' => 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.',
'temporarily_unavailable' => 'The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.'
);
public function __construct()
{