From 473a6d34bd514cb4ccbe7d3116e8da71f3990424 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);