File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/main/java/com/checkmarx/ast/wrapper Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 55import lombok .Data ;
66import lombok .Setter ;
77import org .apache .commons .lang3 .StringUtils ;
8+
89import java .util .ArrayList ;
910import java .util .List ;
1011import java .util .regex .Matcher ;
@@ -33,7 +34,15 @@ public void setAdditionalParameters(String additionalParameters) {
3334 List <String > toArguments () {
3435 List <String > commands = new ArrayList <>();
3536
36- if (StringUtils .isNotBlank (getApiKey ())) {
37+ if (StringUtils .isNotBlank (getClientId ()) && StringUtils .isNotBlank (getApiKey ())) {
38+ /*
39+ * Added dynamic client-id support for refresh_token grant flow
40+ */
41+ commands .add (CxConstants .CLIENT_ID );
42+ commands .add (getClientId ());
43+ commands .add (CxConstants .API_KEY );
44+ commands .add (getApiKey ());
45+ } else if (StringUtils .isNotBlank (getApiKey ())) {
3746 commands .add (CxConstants .API_KEY );
3847 commands .add (getApiKey ());
3948 } else if (StringUtils .isNotBlank (getClientId ()) && StringUtils .isNotBlank (getClientSecret ())) {
You can’t perform that action at this time.
0 commit comments