Mongodb Authentication failure with shared cluster
arunbenoyv opened this issue · 0 comments
arunbenoyv commented
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.