Skip to content

Commit e8e7083

Browse files
committed
Ensure that client secret is not leaked
1 parent ac84fd9 commit e8e7083

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kafka-connect-fitbit-source/src/main/java/org/radarbase/connect/rest/fitbit/FitbitRestSourceConnectorConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public String toString() {
269269
FITBIT_USER_REPOSITORY_CLIENT_ID_DISPLAY)
270270

271271
.define(FITBIT_USER_REPOSITORY_CLIENT_SECRET_CONFIG,
272-
Type.STRING,
272+
Type.PASSWORD,
273273
"",
274274
Importance.MEDIUM,
275275
FITBIT_USER_REPOSITORY_CLIENT_SECRET_DOC,
@@ -499,7 +499,7 @@ public String getFitbitUserRepositoryClientId() {
499499
}
500500

501501
public String getFitbitUserRepositoryClientSecret() {
502-
return getString(FITBIT_USER_REPOSITORY_CLIENT_SECRET_CONFIG);
502+
return getPassword(FITBIT_USER_REPOSITORY_CLIENT_SECRET_CONFIG).value();
503503
}
504504

505505
public URL getFitbitUserRepositoryTokenUrl() {

0 commit comments

Comments
 (0)