Skip to content

use post request for old advanced search#327

Open
hilpitome wants to merge 21 commits intomasterfrom
326-make-search-request-with-post
Open

use post request for old advanced search#327
hilpitome wants to merge 21 commits intomasterfrom
326-make-search-request-with-post

Conversation

@hilpitome
Copy link
Copy Markdown
Contributor

@hilpitome hilpitome commented Nov 18, 2022

Address #326

@hilpitome hilpitome requested review from ekigamba and qiarie November 23, 2022 06:53
…P/opensrp-client-child into 326-make-search-request-with-post
@hilpitome hilpitome requested a review from hamza-vd December 8, 2022 07:18
@hilpitome
Copy link
Copy Markdown
Contributor Author

PR Notes

A security audit report recommended that since /fetch/search expects NFC Card Identifier as one of the parameters, the request should be made via POST which is relatively more secure

return retrieveRemoteClients(searchParameters);
}
String paramString = "";
return searchUsingOldApproachWithPostRequest(searchParameters);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we update this method name to give more meaning?

return searchUsingOldApproachWithPostRequest(searchParameters);
}

private Response<String> searchUsingOldApproachWithPostRequest(Map<String, String> searchParameters){
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See earlier comment

@hilpitome hilpitome requested a review from qiarie January 27, 2023 13:17
…P/opensrp-client-child into 326-make-search-request-with-post
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants