Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
private static final String IDENTITY_BASE_URL = "IDENTITY_BASE_URL";

@Value("${genben-api}")
private static String BEN_GEN ;
private String BEN_GEN ;


@Value("${generateBeneficiaryIDs-api-url}")
private static String BEN_GEN_API_URL ;
private String BEN_GEN_API_URL ;


@Override
Expand Down Expand Up @@ -529,8 +529,11 @@
if (auth != null) {
header.put("Authorization", auth);
}

logger.info("Request to generate ben IDs: " + request);

Check notice

Code scanning / SonarCloud

Logging should not be vulnerable to injection attacks Low

Change this code to not log user-controlled data. See more on SonarQube Cloud
logger.info("Generating ben IDs API URL: " + BEN_GEN + BEN_GEN_API_URL);
result = httpUtils.post(BEN_GEN + BEN_GEN_API_URL, request, header);

logger.info("Response from generate ben IDs: " + result);
OutputResponse identityResponse = inputMapper.gson().fromJson(result, OutputResponse.class);

if (identityResponse.getStatusCode() == OutputResponse.USERID_FAILURE) {
Expand Down