mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-01 16:33:07 +05:30
Broke the supported response types and authorisation grants out into their own variables
This commit is contained in:
parent
0d060d6560
commit
4f343cbe42
@ -13,16 +13,25 @@ class Server
|
||||
private $db = null;
|
||||
|
||||
private $config = array(
|
||||
'response_types' => array(
|
||||
'code'
|
||||
),
|
||||
'grant_types' => array(
|
||||
'authorization_code'
|
||||
),
|
||||
'scope_delimeter' => ',',
|
||||
'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(
|
||||
0 => 'invalid_request',
|
||||
1 => 'unauthorized_client',
|
||||
|
Loading…
Reference in New Issue
Block a user