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

Mongodb Authentication failure with shared cluster #946

Open
arunbenoyv opened this issue Jun 2, 2021 · 0 comments
Open

Mongodb Authentication failure with shared cluster #946

arunbenoyv opened this issue Jun 2, 2021 · 0 comments

Comments

@arunbenoyv
Copy link

Hi,
We have a shaded MongoDB cluster hence in the connection string we have to provide the authSource
user:password@mongo-qr--svc:port/?authSource=admin

In mongodb_connector.ts
https://github.com/hastic/hastic-server/blob/master/server/src/services/data_service/db_connector/mongodb_connector.ts

function getDbConfig only fetches user, password, url, dbName and not the authSource

and while initialising the client authsource is taken form dbName
authSource: dbConfig.dbName

This is a feature that we would like to have.

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