From 92686d8805e728ab9db7ca93246fee96989541d3 Mon Sep 17 00:00:00 2001 From: Senthamil Sindhu Date: Thu, 27 Jun 2024 21:24:40 -0700 Subject: [PATCH] Add new fixes --- src/Common/CosmosClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/CosmosClient.ts b/src/Common/CosmosClient.ts index 9d35b15e5..4256c31a3 100644 --- a/src/Common/CosmosClient.ts +++ b/src/Common/CosmosClient.ts @@ -91,7 +91,7 @@ export const tokenProvider = async (requestInfo: Cosmos.RequestInfo) => { userContext.masterKey, ); return decodeURIComponent(headers.authorization); - } else { + } else if (userContext.dataPlaneRbacEnabled == false) { const { databaseAccount: account, subscriptionId, resourceGroup } = userContext; const keys: DatabaseAccountListKeysResult = await listKeys(subscriptionId, resourceGroup, account.name);