Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1442

Refactor Auth to exclusively use a MongoCredential object

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0
    • Affects Version/s: 3.0.7
    • Component/s: Core, Native
    • Labels:
      None

      According to the auth spec, we should be using an object called MongoCredentials to pass around all of our auth configuration. Right now, we have a variety of ways we pass around credentials, including:

      • Sticking things together in an anonymous auth object
      • Sticking things in an auth array
      • Just passing fields around individually

      By switching to tracking credentials in a single way, it would simplify a lot of code.

            Assignee:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Reporter:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: