Skip to content

Don't ignore Db-level authSource on log-in #1426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2016
Merged

Don't ignore Db-level authSource on log-in #1426

merged 1 commit into from
Nov 8, 2016

Conversation

donaldguy
Copy link
Contributor

It seems like this property has been eliminated in 3.0 but it is definitely documented in 2.2:
http://mongodb.github.io/node-mongodb-native/2.2/api/Db.html

and is used in logout(): https://github.com/mongodb/node-mongodb-native/blob/2.2/lib/db.js#L1579

furthermore, an authSource as an option to authenticate() is NOT documented:
http://mongodb.github.io/node-mongodb-native/2.2/api/Db.html#authenticate

donaldguy pushed a commit to tulip/mongo-migrate that referenced this pull request Nov 3, 2016
@christkv
Copy link
Contributor

christkv commented Nov 8, 2016

I'll merge it but you should avoid using .authenticate and instead pass credentials using MongoClient.connect.

@christkv christkv merged commit c9a49f8 into mongodb:2.2 Nov 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants