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

Mongo URI AuthSource Not Supported with Connect #30

Open
duane-talentsonar opened this issue Apr 5, 2016 · 0 comments
Open

Mongo URI AuthSource Not Supported with Connect #30

duane-talentsonar opened this issue Apr 5, 2016 · 0 comments

Comments

@duane-talentsonar
Copy link

It appears that a mongo URI that uses the authSource option cannot properly connect to the database.

Given a URI of the form: mongodb://user:pass@server-1:27017,server-2:27017/database?replicaSet=rs-1&ssl=true&authSource=admin

The response is

Locating default server for cluster 'mongodb://*****:*****@server-1:27017,server-2:27017/database'...
Connecting to server 'server-1:27017'
Invalid login!
Enter username for database 'database': 

The authSource to the admin database appears to be lost during the URI parsing and connection process.

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

No branches or pull requests

1 participant