You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/01/24 16:37:48 UTC

[GitHub] jthomas opened a new issue #193: Support IAM keys for Cloudant instances

jthomas opened a new issue #193: Support IAM keys for Cloudant instances
URL: https://github.com/apache/incubator-openwhisk-package-cloudant/issues/193
 
 
   The [source code](https://github.com/apache/incubator-openwhisk-package-cloudant/blob/master/provider/app.js#L52) for the provider uses Basic auth to provide the username and password to the Cloudant instance. 
   
   ```
   var cloudant = require('@cloudant/cloudant')(dbProtocol + '://' + dbUsername + ':' + dbPassword + '@' + dbHost);
   ```
   
   Newer service keys for Cloudant now default to using IAM-based authentication....
   
   ```
   var cloudant = new Cloudant({ url: 'https://examples.cloudant.com', plugins: { iamauth: { iamApiKey: 'xxxxxxxxxx' } } });
   ```
   
   The provider should support both options for authentication based on whether the username and password or IAM API key are passed. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services