Skip to content

Commit

Permalink
Update auth package (#751)
Browse files Browse the repository at this point in the history
* Update auth package

* Fixup
  • Loading branch information
alexweininger authored Sep 26, 2023
1 parent d21a005 commit 22914c0
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 10 deletions.
101 changes: 92 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@
"@azure/arm-resources": "^5.2.0",
"@azure/arm-resources-profile-2020-09-01-hybrid": "^2.1.0",
"@azure/arm-subscriptions": "^5.1.0",
"@microsoft/vscode-azext-azureauth": "^1.1.3",
"@microsoft/vscode-azext-azureauth": "^1.2.1",
"@microsoft/vscode-azext-azureutils": "^2.0.0",
"@microsoft/vscode-azext-utils": "^2.0.0",
"buffer": "^6.0.3",
Expand Down
7 changes: 7 additions & 0 deletions test/api/MockAzureSubscriptionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { TenantIdDescription } from '@azure/arm-subscriptions';
import type { AzureSubscription, AzureSubscriptionProvider } from '@microsoft/vscode-azext-azureauth';
import { Disposable, Event } from 'vscode';
import { MockResources } from './mockServiceFactory';
Expand Down Expand Up @@ -40,6 +41,12 @@ export class MockAzureSubscriptionProvider implements AzureSubscriptionProvider
throw new Error('Method not implemented.');
}

public async getTenants(): Promise<TenantIdDescription[]> {
return [{
tenantId: 'tenantId',
}];
}

public onDidSignIn: Event<void> = () => { return new Disposable(() => { }) };
public onDidSignOut: Event<void> = () => { return new Disposable(() => { }) };
}

0 comments on commit 22914c0

Please sign in to comment.