From 7027eab507e084ef7ea36e5f23a9eb63b63ecce1 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 25 Jul 2012 16:08:41 +0100 Subject: [PATCH] Fixed errors relating to response types and grant type variables being moved into their own variables --- src/Oauth2/Authentication/Server.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Oauth2/Authentication/Server.php b/src/Oauth2/Authentication/Server.php index 107fa387..6125fb02 100644 --- a/src/Oauth2/Authentication/Server.php +++ b/src/Oauth2/Authentication/Server.php @@ -179,7 +179,7 @@ maintenance of the server.', // Ensure response type is one that is recognised if ( ! in_array($params['response_type'], - $this->config['response_types'])) { + $this->response_types)) { throw new OAuthServerClientException( $this->errors['unsupported_response_type'], 3); @@ -364,8 +364,7 @@ maintenance of the server.', $authParams['grant_type'] : $_POST['grant_type']; // Ensure response type is one that is recognised - if ( ! in_array($params['response_type'], - $this->config['grant_types'])) { + if ( ! in_array($params['response_type'], $this->grant_types)) { throw new OAuthServerClientException( $this->errors['unsupported_grant_type'], 7);