cloudant / java-cloudant

A Java client for Cloudant
Apache License 2.0
79 stars 68 forks source link

419 support iam auth in replications #425

Closed smithsz closed 6 years ago

smithsz commented 6 years ago

Thanks for your hard work, please ensure all items are complete before opening.

What

Support IAM authentication in replications. For example:

How

Expose new methods on the underlying replication document classes. These add the required IAM API key fields to the generated replication document JSON.

Example IAM authenticated replication document:

{
  "source": { "url": "...", "auth": { "iam": { "api_key": "<key>" } } },
  "target": { "url": "...", "auth": { "iam": { "api_key": "<key>" } } },
}

Testing

Includes additional mock unit tests.

Issues

Fixes #419.

ricellis commented 6 years ago

I think I'm +1 once that last utf8 piece is done