From e89510abe66e0940d0579e39f8b7c3b0fd4a6cb7 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Sat, 10 Jun 2023 22:45:20 +0000 Subject: [PATCH] support `DB_AUTH_SOURCE` --- shared/classes/DbManager/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/classes/DbManager/index.js b/shared/classes/DbManager/index.js index bdffe441..00a33554 100755 --- a/shared/classes/DbManager/index.js +++ b/shared/classes/DbManager/index.js @@ -19,6 +19,10 @@ function getConnectionConfig(obj) { auth.push("/?authMechanism=DEFAULT") } + if (DB_AUTH_SOURCE && DB_USER) { + auth.push(`&authSource=${DB_AUTH_SOURCE}`) + } + auth = auth.join("") return [