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.
**Note:** For legacy compatibility with older versions of the library using the
253
+
initialization callback will always add the `cookieauth` plugin to the list of
254
+
configured plugins. If you do not want to use `cookieauth` then you should not
255
+
use this initialization callback, instead initalize the client without a
256
+
callback and then call the [ping function](https://cloud.ibm.com/docs/services/Cloudant/api?topic=cloudant-account#ping)
257
+
e.g.:
258
+
259
+
```js
260
+
constc=newCloudant({
261
+
url:'http://localhost:5984',
262
+
username:'somebody',
263
+
password:'something',
264
+
plugins: [] // disable cookieauth
265
+
});
266
+
c.ping()
267
+
.then(/* do something with response */console.log)
268
+
.catch(/* handle error */console.log);
269
+
```
270
+
252
271
### Callback Signature
253
272
254
273
Callback functions receive three arguments:
@@ -387,7 +406,7 @@ var cloudant = Cloudant({ url: myurl, maxAttempt: 5, plugins: [ { iamauth: { iam
387
406
388
407
IBM Cloud Identity & Access Management enables you to securely authenticate
389
408
users and control access to all cloud resources consistently in the IBM
390
-
Bluemix Cloud Platform.
409
+
Cloud Platform.
391
410
392
411
This plugin will automatically exchange your IAM API key for a token. It will
393
412
handle the authentication and ensure that the token is refreshed as required.
@@ -412,7 +431,7 @@ var cloudant = Cloudant({ url: myurl, maxAttempt: 5, plugins: [ { iamauth: { iam
412
431
(either because the IAM token service is down or the IAM API key is
413
432
incorrect) then an error is returned to the client.
414
433
415
-
See [IBM Cloud Identity and Access Management](https://console.bluemix.net/docs/services/Cloudant/guides/iam.html#ibm-cloud-identity-and-access-management) for more information.
434
+
See [IBM Cloud Identity and Access Management](https://cloud.ibm.com/docs/services/Cloudant/guides?topic=cloudant-ibm-cloud-identity-and-access-management-iam-) for more information.
416
435
417
436
3. `retry`
418
437
@@ -493,7 +512,7 @@ This library adds documentation for the following:
493
512
494
513
Cloudant API keys are part of the legacy access controls. They are different from
495
514
the access control mechanisms offered by IBM Cloud IAM. See
0 commit comments