Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update auth package #751

Merged
merged 2 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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(() => { }) };
}