Open arunbenoyv opened 3 years ago
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.
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.