Enable Azure Active Directory MFA authentication (#3125)

This commit is contained in:
Matt Irvine
2018-11-27 11:13:47 -08:00
committed by GitHub
parent d646b4729b
commit cb72865dcc
33 changed files with 369 additions and 109 deletions

10
src/sql/sqlops.d.ts vendored
View File

@@ -1915,7 +1915,7 @@ declare module 'sqlops' {
* @param {Account} account Account to generate security token for
* @return {Thenable<{}>} Promise to return the security token
*/
export function getSecurityToken(account: Account): Thenable<{}>;
export function getSecurityToken(account: Account, resource: AzureResource): Thenable<{}>;
/**
* An [event](#Event) which fires when the accounts have changed.
@@ -1988,6 +1988,11 @@ declare module 'sqlops' {
isStale: boolean;
}
export enum AzureResource {
ResourceManagement = 0,
Sql = 1
}
export interface DidChangeAccountsParams {
// Updated accounts
accounts: Account[];
@@ -2045,9 +2050,10 @@ declare module 'sqlops' {
/**
* Generates a security token for the provided account
* @param {Account} account The account to generate a security token for
* @param {AzureResource} resource The resource to get the token for
* @return {Thenable<{}>} Promise to return a security token object
*/
getSecurityToken(account: Account): Thenable<{}>;
getSecurityToken(account: Account, resource: AzureResource): Thenable<{}>;
/**
* Prompts the user to enter account information.