Add code to fix VCoreMongo/PG bug

This commit is contained in:
Senthamil Sindhu 2024-07-08 14:46:11 -07:00
parent 2740657b4a
commit 1ddd372c6d
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,6 @@ export const tokenProvider = async (requestInfo: Cosmos.RequestInfo) => {
}
const AUTH_PREFIX = `type=aad&ver=1.0&sig=`;
const authorizationToken = `${AUTH_PREFIX}${userContext.aadToken}`;
console.log(`Returning Auth token`);
return authorizationToken;
}

View File

@ -521,8 +521,10 @@ async function configurePortal(): Promise<Explorer> {
useDataPlaneRbac.setState({ dataPlaneRbacEnabled: dataPlaneRbacEnabled });
}
} else {
if (userContext.apiType !== "Postgres" && userContext.apiType !== "VCoreMongo") {
await fetchAndUpdateKeys(subscriptionId, resourceGroup, account.name);
}
}
explorer = new Explorer();
resolve(explorer);