You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generally, this component is installed with [RADAR-Kubernetes](https://github.com/RADAR-base/RADAR-Kubernetes). It uses Docker image [radarbase/kafka-connect-rest-fitbit-source](https://hub.docker.com/r/radarbase/kafka-connect-rest-fitbit-source).
27
+
Generally, this component is installed
28
+
with [RADAR-Kubernetes](https://github.com/RADAR-base/RADAR-Kubernetes). It uses Docker
For automatic configuration for multiple users, please take a look at `scripts/REDCAP-FITBIT-AUTH-AUTO/README.md`.
39
+
For automatic configuration for multiple users, please take a look at
40
+
`scripts/REDCAP-FITBIT-AUTH-AUTO/README.md`.
26
41
27
42
Copy `docker/source-fitbit.properties.template` to `docker/source-fitbit.properties` and enter
28
43
your Fitbit App client ID and client secret. The following tables shows the possible properties.
@@ -94,7 +109,8 @@ your Fitbit App client ID and client secret. The following tables shows the poss
94
109
<td>fitbit.user.firebase.collection.user.name</td><td>Firestore Collection for retrieving User details. Only used when a Firebase based user repository is used.</td><td>string</td><td>users</td><td></td><td>low</td></tr>
95
110
</tbody></table>
96
111
97
-
If the ManagementPortal is used to authenticate against the user repository, please add an OAuth client to ManagementPortal with the following properties:
112
+
If the ManagementPortal is used to authenticate against the user repository, please add an OAuth
113
+
client to ManagementPortal with the following properties:
98
114
99
115
```
100
116
Client ID: fitbit.user.repository.client.id
@@ -106,7 +122,8 @@ Access Token validity: 600
106
122
Refresh Token validity: 0
107
123
```
108
124
109
-
Finally set the `fitbit.user.repository.oauth.token.url` to `http://managementportal-app:8080/managementportal/oauth/token`.
125
+
Finally set the `fitbit.user.repository.oauth.token.url` to
To enable Sentry monitoring for the generic REST, Fitbit, or Oura source connector service:
186
+
187
+
1. Set a `SENTRY_DSN` environment variable that points to the desired Sentry DSN.
188
+
2. (Optional) Set the `SENTRY_LOG_LEVEL` environment variable to control the minimum log level of
189
+
events sent to Sentry.
190
+
The default log level for Sentry is `WARN`. Possible values are `TRACE`, `DEBUG`, `INFO`, `WARN`,
191
+
and `ERROR`.
192
+
193
+
For further configuration of Sentry via environmental variables see [here](https://docs.sentry.io/platforms/java/configuration/#configuration-via-the-runtime-environment). For instance:
Code should be formatted using the [Google Java Code Style Guide](https://google.github.io/styleguide/javaguide.html).
169
-
If you want to contribute a feature or fix browse our [issues](https://github.com/RADAR-base/RADAR-REST-Connector/issues), and please make a pull request.
204
+
Code should be formatted using
205
+
the [Google Java Code Style Guide](https://google.github.io/styleguide/javaguide.html).
206
+
If you want to contribute a feature or fix browse
207
+
our [issues](https://github.com/RADAR-base/RADAR-REST-Connector/issues), and please make a pull
Copy file name to clipboardExpand all lines: kafka-connect-fitbit-source/src/main/java/org/radarbase/connect/rest/fitbit/user/ServiceUserRepositoryLegacy.java
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,8 @@
36
36
importjava.util.stream.Collectors;
37
37
importjava.util.stream.Stream;
38
38
importokhttp3.Credentials;
39
-
importokhttp3.HttpUrl;
39
+
importokhttp3.FormBody;
40
+
importokhttp3.HttpUrl;
40
41
importokhttp3.MediaType;
41
42
importokhttp3.OkHttpClient;
42
43
importokhttp3.Request;
@@ -64,6 +65,9 @@ public class ServiceUserRepositoryLegacy implements UserRepository {
0 commit comments