Show message indicating that ADAL is being deprecated (#22432)

* show message indicating that ADAL is being deprecated

* pr comments update

* added settings deprecation message

* fix deprecation message
This commit is contained in:
Christopher Suh
2023-03-24 14:42:45 -07:00
committed by GitHub
parent 31ac636222
commit 738987c4d5
4 changed files with 8 additions and 3 deletions

View File

@@ -126,7 +126,8 @@
"enumDescriptions": [
"Azure Active Directory Authentication Library",
"Microsoft Authentication Library"
]
],
"deprecationMessage": "Warning: ADAL has been deprecated, and is scheduled to be removed in a future release. Please use MSAL (default option) instead."
}
}
}

View File

@@ -68,7 +68,7 @@ export const AzureTokenFolderName = 'Azure Accounts';
export const MSALCacheName = 'accessTokenCache';
export const DefaultAuthLibrary = 'ADAL';
export const DefaultAuthLibrary = 'MSAL';
export enum BuiltInCommands {
SetContext = 'setContext'

View File

@@ -305,6 +305,9 @@ async function onDidChangeConfiguration(e: vscode.ConfigurationChangeEvent): Pro
updatePiiLoggingLevel();
}
if (e.affectsConfiguration('azure.authenticationLibrary')) {
if (vscode.workspace.getConfiguration(Constants.AzureSection).get('authenticationLibrary') === 'ADAL') {
void vscode.window.showInformationMessage(loc.deprecatedOption);
}
await displayReloadAds();
}
}
@@ -327,4 +330,3 @@ async function displayReloadAds(): Promise<boolean> {
}
}

View File

@@ -66,6 +66,8 @@ export const typeIcon = localize('azurecore.typeIcon', "Type Icon");
export const reloadPrompt = localize('azurecore.reloadPrompt', "Authentication Library has changed, please reload Azure Data Studio.");
export const reloadChoice = localize('azurecore.reloadChoice', "Reload Azure Data Studio");
export const deprecatedOption = localize('azurecore.deprecated', "Warning: ADAL has been deprecated, and is scheduled to be removed in a future release. Please use MSAL instead.")
// Azure Resource Types
export const sqlServer = localize('azurecore.sqlServer', "SQL server");
export const sqlDatabase = localize('azurecore.sqlDatabase', "SQL database");