Skip to content

Mongo URI AuthSource Not Supported with Connect #30

@duane-talentsonar

Description

@duane-talentsonar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions