mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 09:20:16 +00:00
Removes feature flag from passing masterKey to SDK (#843)
* Remove Feature flag from master key usage * Adds flag to fallback * format
This commit is contained in:
@@ -106,7 +106,11 @@ async function configureHostedWithAAD(config: AAD, explorerParams: ExplorerParam
|
||||
try {
|
||||
keys = await listKeys(subscriptionId, resourceGroup, account.name);
|
||||
} catch (e) {
|
||||
console.warn(e);
|
||||
if (userContext.features.enableAadDataPlane) {
|
||||
console.warn(e);
|
||||
} else {
|
||||
throw new Error(`List keys failed: ${e.message}`);
|
||||
}
|
||||
}
|
||||
updateUserContext({
|
||||
subscriptionId,
|
||||
|
||||
Reference in New Issue
Block a user