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
{{ message }}
This repository was archived by the owner on Mar 11, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -261,7 +261,20 @@ Read more in [the replication docs](https://github.com/cloudant/sync-android/blo
261
261
### Authentication
262
262
263
263
Sync-android uses session cookies by default to authenticate with the server if
264
-
credentials are provided with in the URL. If you want more fine-grained control over authentication, provide an interceptor to perform the authentication for each request. For example, if you are using middleware such as [Envoy][envoy], you can use
264
+
credentials are provided with in the URL.
265
+
266
+
To use an IAM API key on IBM Bluemix, use the `iamApiKey` method when
267
+
building the `Replicator` object:
268
+
269
+
```java
270
+
Replicator replicator =ReplicatorBuilder.push()
271
+
.from(ds)
272
+
.to(uri)
273
+
.iamApiKey("exampleApiKey")
274
+
.build();
275
+
```
276
+
277
+
If you want more fine-grained control over authentication, provide an interceptor to perform the authentication for each request. For example, if you are using middleware such as [Envoy][envoy], you can use
265
278
the `BasicAuthInterceptor` to add basic authentication to requests.
Copy file name to clipboardExpand all lines: cloudant-sync-datastore-core/src/test/java/com/cloudant/sync/internal/replication/CompactedDBReplicationTest.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,7 @@ public void replicationFromCompactedDB() throws Exception{
56
56
// skip test if we are doing cookie auth, we don't have the interceptor chain to do it
57
57
// when we call ClientTestUtils.executeHttpPostRequest
0 commit comments