oauth2-server/src/oauth2server/Server.php

33 lines
1.2 KiB
PHP
Raw Normal View History

2012-07-05 22:08:58 +05:30
<?php
namespace LNCD\OAuth2server;
2012-07-06 21:14:07 +05:30
class OAuthSererClientException extends Exception {}
class OAuthServerUserException extends Exception {}
class OAuthServerException extends Exception {}
2012-07-05 22:08:58 +05:30
class Server
{
2012-07-06 21:14:24 +05:30
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.'
);
2012-07-05 22:08:58 +05:30
public function __construct()
{
}
public function registerDbAbstractor()
{
}
}