From 7c328e510665ac8bf04386178d06e1be6c41d9c6 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Mon, 16 May 2022 11:59:46 -0500 Subject: [PATCH] bug fix: mongodb mechanism parameter for authentication --- transport/mongo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/mongo.py b/transport/mongo.py index 7cb89c3..eb7b75d 100644 --- a/transport/mongo.py +++ b/transport/mongo.py @@ -59,7 +59,7 @@ class Mongo : username=username, password=password , authSource=authSource, - authMechanism='SCRAM-SHA-256') + authMechanism=authMechanism) else: self.client = MongoClient(host,maxPoolSize=10000)