Broke the supported response types and authorisation grants out into their own variables

This commit is contained in:
Alex Bilbie 2012-07-25 16:04:52 +01:00
parent 0d060d6560
commit 4f343cbe42

View File

@ -13,16 +13,25 @@ class Server
private $db = null; private $db = null;
private $config = array( private $config = array(
'response_types' => array(
'code'
),
'grant_types' => array(
'authorization_code'
),
'scope_delimeter' => ',', 'scope_delimeter' => ',',
'access_token_ttl' => null 'access_token_ttl' => null
); );
/**
* Supported response types
* @var array
*/
private $response_types = array(
'code'
);
/**
* Supported grant types
* @var array
*/
private $grant_types = array(
'authorization_code'
);
public $exceptionCodes = array( public $exceptionCodes = array(
0 => 'invalid_request', 0 => 'invalid_request',
1 => 'unauthorized_client', 1 => 'unauthorized_client',