File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
src/main/java/com/checkmarx/ast/wrapper Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 2424 <dependency >
2525 <groupId >org.apache.commons</groupId >
2626 <artifactId >commons-lang3</artifactId >
27- <version >3.18 .0</version >
27+ <version >3.14 .0</version >
2828 </dependency >
2929 <dependency >
3030 <groupId >com.googlecode.json-simple</groupId >
4444 <dependency >
4545 <groupId >com.google.code.gson</groupId >
4646 <artifactId >gson</artifactId >
47- <version >2.12.0 </version >
47+ <version >2.10.1 </version >
4848 </dependency >
4949 <dependency >
5050 <groupId >org.slf4j</groupId >
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