From 4f343cbe42aee2ac78550ec1c53558b6564135d1 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 25 Jul 2012 16:04:52 +0100 Subject: [PATCH] Broke the supported response types and authorisation grants out into their own variables --- src/Oauth2/Authentication/Server.php | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/Oauth2/Authentication/Server.php b/src/Oauth2/Authentication/Server.php index 361befec..644dae78 100644 --- a/src/Oauth2/Authentication/Server.php +++ b/src/Oauth2/Authentication/Server.php @@ -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',