File tree 4 files changed +5
-4
lines changed
plugin/src/main/java/io/snyk
4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## [ 2.2.0] - Unreleased
4
4
### Changes
5
- - update required protocol version to 12
5
+ - update required protocol version to 14
6
6
- integrate latest docs incl. troubleshooting
7
+ - default to oauth2 when authenticating
7
8
8
9
## [ 2.2.0] - v20240619.131238
9
10
### Changes
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public static synchronized Preferences getInstance(PreferenceStore store) {
109
109
}
110
110
111
111
if (getPref (USE_TOKEN_AUTH ) == null ) {
112
- store .put (USE_TOKEN_AUTH , "true " );
112
+ store .put (USE_TOKEN_AUTH , "false " );
113
113
}
114
114
}
115
115
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ private void setupProcessBuilderBase(ProcessBuilder pb) {
127
127
128
128
String token = Preferences .getInstance ().getAuthToken ();
129
129
if (token != null && !token .isBlank ()) {
130
- if (Preferences .getInstance ().getBooleanPref (Preferences .USE_TOKEN_AUTH , true )) {
130
+ if (Preferences .getInstance ().getBooleanPref (Preferences .USE_TOKEN_AUTH , false )) {
131
131
pb .environment ().put (EnvironmentConstants .ENV_SNYK_TOKEN , token );
132
132
pb .environment ().remove (EnvironmentConstants .ENV_OAUTH_ACCESS_TOKEN );
133
133
} else {
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Settings getCurrentSettings() {
51
51
}
52
52
String enableTrustedFolderFeature = Boolean .TRUE .toString ();
53
53
String scanningMode = preferences .getBooleanPref (Preferences .SCANNING_MODE_AUTOMATIC ) ? "automatic" : "manual" ;
54
- boolean useTokenAuth = preferences .getBooleanPref (Preferences .USE_TOKEN_AUTH , true );
54
+ boolean useTokenAuth = preferences .getBooleanPref (Preferences .USE_TOKEN_AUTH , false );
55
55
var authMethod = "oauth" ;
56
56
if (useTokenAuth ) {
57
57
authMethod = "token" ;
You can’t perform that action at this time.
0 commit comments