From 2604f5df1dddbaef969f815c7da69536e154a999 Mon Sep 17 00:00:00 2001 From: Kumar Gaurav Date: Mon, 30 Sep 2024 14:53:05 -0700 Subject: [PATCH] fix: use conversationId returned by the server instead of hardcoded integer in SASL implementation for MONGODB-AWS. --- src/cmap/auth/mongodb_aws.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmap/auth/mongodb_aws.ts b/src/cmap/auth/mongodb_aws.ts index d034f425d1..5b640d7781 100644 --- a/src/cmap/auth/mongodb_aws.ts +++ b/src/cmap/auth/mongodb_aws.ts @@ -148,7 +148,7 @@ export class MongoDBAWS extends AuthProvider { const saslContinue = { saslContinue: 1, - conversationId: 1, + conversationId: saslStartResponse.conversationId, payload: BSON.serialize(payload, bsonOptions) };