mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Adding support for AAD connections in import wizard (#16759)
* Adding support for aad connections in import extension * Adding support for AAD by passing azure account token * Adding a test for aad connections and fixing broken tests * removing extra await
This commit is contained in:
@@ -185,3 +185,37 @@ export class TestFlatFileProvider implements FlatFileProvider {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export function getAzureAccounts(): azdata.Account[] {
|
||||
return [
|
||||
{
|
||||
isStale: false,
|
||||
key: {
|
||||
providerId: 'account1Provider',
|
||||
accountId: 'account1Id'
|
||||
},
|
||||
displayInfo: {
|
||||
accountType: 'account1Type',
|
||||
contextualDisplayName: 'account1ContextualDisplayName',
|
||||
displayName: 'account1DisplayName',
|
||||
userId: 'account1@microsoft.com'
|
||||
},
|
||||
properties: {}
|
||||
},
|
||||
{
|
||||
isStale: false,
|
||||
key: {
|
||||
providerId: 'account2Provider',
|
||||
accountId: 'account2Id'
|
||||
},
|
||||
displayInfo: {
|
||||
accountType: 'account2Type',
|
||||
contextualDisplayName: 'account2ContextualDisplayName',
|
||||
displayName: 'account2DisplayName',
|
||||
userId: 'account2@microsoft.com'
|
||||
},
|
||||
properties: {}
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user