wazuh / wazuh-cloudformation

Wazuh - Amazon AWS Cloudformation
https://wazuh.com
39 stars 22 forks source link

Change HTTP method to `POST` when using the API login endpoint #97

Closed mcarmona99 closed 2 years ago

mcarmona99 commented 2 years ago

This issue is part of https://github.com/wazuh/wazuh/issues/12793.

The epic issue aims to change the API login endpoint method from GET to POST, as using GET as the method of a login endpoint is incorrect.

As it was said in https://github.com/wazuh/wazuh/issues/10203#issuecomment-929557731, both GET /security/user/authenticate and POST /security/user/authenticate endpoints will coexist and the deprecation of GET /security/user/authenticate will happen in a future major release.

To avoid future problems when the actual login endpoint (GET) is deprecated, we should update all the references found in this repository:

https://github.com/wazuh/wazuh-cloudformation/blob/d804667423000d710f3e4a98a00d348d69ff9c45/production/wazuh/cluster/wazuh_cf_master.sh#L192

https://github.com/wazuh/wazuh-cloudformation/blob/d804667423000d710f3e4a98a00d348d69ff9c45/production/wazuh/cluster/wazuh_cf_master.sh#L198