From 680dc1b5da450a5fe165d116440ab1233a8aa181 Mon Sep 17 00:00:00 2001 From: Amir Omidi Date: Fri, 30 Oct 2020 08:19:08 -0700 Subject: [PATCH] Fix #13108 (#13145) --- .../contrib/commandLine/electron-browser/commandLine.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sql/workbench/contrib/commandLine/electron-browser/commandLine.ts b/src/sql/workbench/contrib/commandLine/electron-browser/commandLine.ts index 7ac5a8497b..171c3691e3 100644 --- a/src/sql/workbench/contrib/commandLine/electron-browser/commandLine.ts +++ b/src/sql/workbench/contrib/commandLine/electron-browser/commandLine.ts @@ -285,13 +285,14 @@ export class CommandLineWorkbenchContribution implements IWorkbenchContribution, 2. Take --integrated, if not 3. take --aad, if not 4. If user exists, and user has @, then it's azureMFA - 5. If user doesn't exist, or user doesn't have @, then integrated + 5. If user exists but doesn't have @, then its SqlLogin + 6. If user doesn't exist, then integrated */ profile.authenticationType = args.authenticationType ? args.authenticationType : args.integrated ? Constants.integrated : args.aad ? Constants.azureMFA : - (args.user && args.user.length > 0) ? args.user.includes('@') ? Constants.azureMFA : Constants.integrated : + (args.user && args.user.length > 0) ? args.user.includes('@') ? Constants.azureMFA : Constants.sqlLogin : Constants.integrated; profile.connectionName = '';