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 5
5
import lombok .Data ;
6
6
import lombok .Setter ;
7
7
import org .apache .commons .lang3 .StringUtils ;
8
+
8
9
import java .util .ArrayList ;
9
10
import java .util .List ;
10
11
import java .util .regex .Matcher ;
@@ -33,7 +34,15 @@ public void setAdditionalParameters(String additionalParameters) {
33
34
List <String > toArguments () {
34
35
List <String > commands = new ArrayList <>();
35
36
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 ())) {
37
46
commands .add (CxConstants .API_KEY );
38
47
commands .add (getApiKey ());
39
48
} else if (StringUtils .isNotBlank (getClientId ()) && StringUtils .isNotBlank (getClientSecret ())) {
You can’t perform that action at this time.
0 commit comments