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 support for MongoDB authentication #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

davidcrawford
Copy link
Contributor

This commit adds support for user mappings to mongo users. This requires that you specify use_auth 'true' in the server options when using authentication.

The reason for adding the new use_auth option is that PG's GetUserMapping function throws an error if none exists. I was unable to find a way to check if a user mapping existed without throwing an error that aborts the query. So we only call GetUserMapping if the server has use_auth 'true'.

Look it over and let me know what you think!

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.

1 participant