Skip to content

Commit

Permalink
Use case sensitive location name as used by Azure auth (#17746) (#17747)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheenamalhotra authored Jul 13, 2023
1 parent 1f38ea4 commit 6829aad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*--------------------------------------------------------------------------------------------*/

// Collection of Non-localizable Constants
export const vscodeAppName = 'code';
export const languageId = 'sql';
export const extensionName = 'mssql';
export const extensionConfigSectionName = 'mssql';
Expand Down
3 changes: 2 additions & 1 deletion src/languageservice/serviceclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { exists } from '../utils/utils';
import { env } from 'process';
import { getAppDataPath, getAzureAuthLibraryConfig, getEnableConnectionPoolingConfig, getEnableSqlAuthenticationProviderConfig } from '../azure/utils';
import { AuthLibrary } from '../models/contracts/azure';
import { serviceName } from '../azure/constants';

const STS_OVERRIDE_ENV_VAR = 'MSSQL_SQLTOOLSSERVICE';

Expand Down Expand Up @@ -405,7 +406,7 @@ export default class SqlToolsServiceClient {
}

// Send application name and path to determine MSAL cache location
serverArgs.push('--application-name', 'code');
serverArgs.push('--application-name', serviceName);
serverArgs.push('--data-path', getAppDataPath());

// Enable SQL Auth Provider registration for Azure MFA Authentication
Expand Down

0 comments on commit 6829aad

Please sign in to comment.