File tree Expand file tree Collapse file tree
plugin/src/main/java/io/snyk Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33## [ 2.2.0] - Unreleased
44### Changes
5- - update required protocol version to 12
5+ - update required protocol version to 14
66- integrate latest docs incl. troubleshooting
7+ - default to oauth2 when authenticating
78
89## [ 2.2.0] - v20240619.131238
910### Changes
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public static synchronized Preferences getInstance(PreferenceStore store) {
109109 }
110110
111111 if (getPref (USE_TOKEN_AUTH ) == null ) {
112- store .put (USE_TOKEN_AUTH , "true " );
112+ store .put (USE_TOKEN_AUTH , "false " );
113113 }
114114 }
115115
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ private void setupProcessBuilderBase(ProcessBuilder pb) {
127127
128128 String token = Preferences .getInstance ().getAuthToken ();
129129 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 )) {
131131 pb .environment ().put (EnvironmentConstants .ENV_SNYK_TOKEN , token );
132132 pb .environment ().remove (EnvironmentConstants .ENV_OAUTH_ACCESS_TOKEN );
133133 } else {
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Settings getCurrentSettings() {
5151 }
5252 String enableTrustedFolderFeature = Boolean .TRUE .toString ();
5353 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 );
5555 var authMethod = "oauth" ;
5656 if (useTokenAuth ) {
5757 authMethod = "token" ;
You can’t perform that action at this time.
0 commit comments