cloudant / nodejs-cloudant

Cloudant Node.js client library
Apache License 2.0
255 stars 90 forks source link

Feature Branch: Add Token Manager #403

Closed smithsz closed 5 years ago

smithsz commented 5 years ago

Checklist

Description

Add new Token Manager for managing authentication tokens.

The manager blocks concurrent token requests. It also preemptively refreshes a token before it expires (dictated by Max-Age).

The Token Manger is used for both Cookie and IAM authentication.

Approach

Schema & API Changes

None.

Security and Privacy

None.

Testing

Includes additional unit tests.

Monitoring and Logging

Adds new logging namespaces for TokenManager type classes.