mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Updated getCurrentGrantType method
This commit is contained in:
@@ -268,13 +268,13 @@ class AuthServer
|
|||||||
throw new Exception\ClientException(sprintf($this->errors['unsupported_grant_type'], $params['grant_type']), 7);
|
throw new Exception\ClientException(sprintf($this->errors['unsupported_grant_type'], $params['grant_type']), 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getCurrentGrantType()
|
// Complete the flow
|
||||||
{
|
return $this->getCurrentGrantType($params['grant_type'])->completeFlow($authParams, $params);
|
||||||
$grantType = $this->getRequest()->post('grant_type');
|
}
|
||||||
|
|
||||||
if (is_null($grantType)) {
|
protected function getCurrentGrantType($grantType)
|
||||||
throw new Exception;
|
{
|
||||||
}
|
return $this->grantTypes[$grantType];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user