-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Empty show more show less
Can an application using the node driver distinguish (observe the difference between)
- auth failed due to wrong authMechanism
- auth failed due to wrong password
This distinction matters if the application wants to implement an auth mechanism fallback such as "try SCRAM-SHA-1, then try MONGODB-CR". If the first (more secure) method fails because the password is wrong by one character, we don't want to attempt the less-secure method.
Question raised on https://github.com/mongodb/node-mongodb-native/pull/1299#issuecomment-143265838