Skip to content

Commit

Permalink
Use util method for masking
Browse files Browse the repository at this point in the history
  • Loading branch information
piraveena committed Jul 21, 2023
1 parent 1de5e3e commit 6249201
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,7 @@ private static void maskClientSecret(JSONObject inboundAuthenticationConfig) {
if (property != null && StringUtils.equalsIgnoreCase("oauthConsumerSecret",
(String) property.get("name"))) {
String secret = property.get("value").toString();
String maskedSecret = secret.replaceAll(MASKING_REGEX, MASKING_CHARACTER);
property.put("value", maskedSecret);
property.put("value", LoggerUtils.getMaskedContent(secret));
break;
}
}
Expand Down

0 comments on commit 6249201

Please sign in to comment.