-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: kerberos
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