private function updateAuthenticationMap($params, $module, $version)
{
if (!isset($params['authentication'])) {
return new ApiProblemResponse(new ApiProblem(404, 'No authentication adapter found'));
}
try {
$this->model->saveAuthenticationMap($params['authentication'], $module, $version);
} catch (Exception\InvalidArgumentException $e) {
return new ApiProblemResponse(new ApiProblem($e->getCode(), $e->getMessage()));
}
return $this->createAuthenticationMapResult($params['authentication']);
}