support DB_AUTH_SOURCE

This commit is contained in:
SrGooglo 2023-06-10 22:45:20 +00:00
parent dfadb88ca2
commit e7c2e8a28b

View File

@ -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 [