Skip to content
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

Add authentication using authSource #225

Merged
merged 2 commits into from
Aug 2, 2021
Merged

Add authentication using authSource #225

merged 2 commits into from
Aug 2, 2021

Conversation

Cosmiiko
Copy link
Contributor

The Mongo connection string standard states that, following the
mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]] format,

(...) the client will attempt to authenticate the user to the authSource. If authSource is unspecified, the client will attempt to authenticate the user to the defaultauthdb. And if the defaultauthdb is unspecified, to the admin database.

This PR implements auth from the authSource option, with greater priority than defaultauthdb, as stated above.

@manyuanrong manyuanrong merged commit 88dd176 into denodrivers:main Aug 2, 2021
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