chg: [localTools:MISP] Include user_id and reflected it

- So that the initiator cerebrate knows which user has to be enabled
pull/59/head
mokaddem 2021-06-28 08:50:33 +02:00
parent 3b0c2d2dca
commit 014bfaf70a
1 changed files with 4 additions and 2 deletions

View File

@ -699,8 +699,9 @@ class MispConnector extends CommonConnectorTools
$params['sync_user'] = $this->createSyncUser($params);
return [
'email' => $params['sync_user']['email'],
'user_id' => $params['sync_user']['id'],
'authkey' => $params['sync_user']['authkey'],
'url' => $params['connection_settings']['url']
'url' => $params['connection_settings']['url'],
];
}
@ -721,7 +722,8 @@ class MispConnector extends CommonConnectorTools
return [
'email' => $params['sync_user']['email'],
'authkey' => $params['sync_user']['authkey'],
'url' => $params['connection_settings']['url']
'url' => $params['connection_settings']['url'],
'reflected_user_id' => $params['remote_tool_data']['user_id'] // request initiator Cerebrate to enable the MISP user
];
}