jomarko commented on code in PR #4213:
URL: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/4213#discussion_r3152323778


##########
jbpm/process-workitems/src/main/java/org/kie/kogito/process/workitems/impl/KogitoWorkItemImpl.java:
##########
@@ -251,7 +251,18 @@ public String toString() {
             Map.Entry<String, Object> entry = iterator.next();
             b.append(entry.getKey());
             b.append("=");
-            b.append(entry.getValue());
+            Object value = entry.getValue();
+            // Mask sensitive token data for both legacy propagateToken and 
new AccessTokenAcquisitionStrategy
+            if (("propagateToken".equals(entry.getKey()) || 
"AccessTokenAcquisitionStrategy".equals(entry.getKey())) && value != null) {

Review Comment:
   maybe we should use existing constant?
   
   `ACCESS_TOKEN_ACQUISITION_STRATEGY`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to