Remove callback support from kerberos

XMLWordPrintableJSON

    • 3
    • 1
    • Not Needed
    • 🔵 Done
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a driver engineer,
      I want to stop supporting callbacks in Kerberos,
      So that all our codebases consistently only support promises.

      User Experience

      • Users should primarily be using kerberos through the driver, so they should be unimpacted.
      • any user using kerberos directly must migrate to promises, or callbackify our API themselves.

      Dependencies

      • n/a

      Risks/Unknowns

      • Should we remove support for `MongoAuthProcess` as well in v7? If so, we do not need to promisify its API.

      Acceptance Criteria

      Implementation Requirements

      • Remove MongoAuthProcess
      • Remove Callback support from the following APIs (the only remaining publicly exported APIs):
        • initializeClient
        • initializeServer
        • principalDetails
        • checkPassword

      Testing Requirements

      • Refactor tests to use async-await instead of callbacks.
      • Ensure all tests pass.

      Documentation Requirements

      • Update kerberos' API reference in README.md

      Follow Up Requirements

      • n/a

            Assignee:
            Bailey Pearson
            Reporter:
            Neal Beeken
            Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: