Fixed errors relating to response types and grant type variables being moved into their own variables

This commit is contained in:
Alex Bilbie 2012-07-25 16:08:41 +01:00
parent 26751ef6b9
commit 7027eab507

View File

@ -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);