mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-01 16:33:07 +05:30
Added error codes and descriptions
This commit is contained in:
parent
4eb0f8b596
commit
11c0a45bfb
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user