mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 02:08:56 +05:30
Fixed errors relating to response types and grant type variables being moved into their own variables
This commit is contained in:
parent
26751ef6b9
commit
7027eab507
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user