Add AuthenticationType enum to typings (#20699)

* Add AuthenticationType enum to typings

* fix

* const

* Add comments

* fix comment

* remove unused
This commit is contained in:
Charles Gagnon
2022-09-30 16:49:36 -07:00
committed by GitHub
parent d6d75d8817
commit 85dc506a3c
49 changed files with 236 additions and 164 deletions

View File

@@ -4,6 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import type * as azdataType from 'azdata';
import * as vscodeMssql from 'vscode-mssql';
import { DataSource } from './dataSources';
import * as constants from '../../common/constants';
@@ -44,11 +45,11 @@ export class SqlConnectionDataSource extends DataSource {
public get authType(): string {
if (this.azureMFA) {
return constants.azureMfaAuth;
return vscodeMssql.AuthenticationType.AzureMFA;
} else if (this.integratedSecurity) {
return constants.integratedAuth;
return vscodeMssql.AuthenticationType.Integrated;
} else {
return constants.sqlAuth;
return 'SqlAuth';
}
}