-
Notifications
You must be signed in to change notification settings - Fork 47
Use v6 of auth package #1292
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
base: main
Are you sure you want to change the base?
Use v6 of auth package #1292
Changes from 28 commits
df0e2f8
5e5315d
f347d1f
113e82d
b0a6354
8bf992b
3b8e457
b6b606b
e86152c
bc99d99
a314e97
4359423
4ace0db
1c4120d
66e8086
298fa2f
9e3baef
f65146a
fe75e7b
634048b
f46258c
10b2b76
632635e
e4621f0
e01696e
6f56d3e
0e76bad
d841bce
18f6608
3c99c9a
73f1933
1339576
b1dab72
60e15bc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ export async function logIn(_context: IActionContext): Promise<void> { | |
| await provider.signIn(); | ||
| } finally { | ||
| _isLoggingIn = false; | ||
| // TODO: do we need this or does the session change event take care of it? | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TODO: Do |
||
| ext.actions.refreshAzureTree(); // Refresh now that sign in is complete | ||
| ext.actions.refreshTenantTree(); // Refresh now that sign in is complete | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,11 @@ | ||
| import { AzureDevOpsSubscriptionProviderInitializer, AzureSubscriptionProvider, createAzureDevOpsSubscriptionProviderFactory } from "@microsoft/vscode-azext-azureauth"; | ||
| import { IActionContext } from "@microsoft/vscode-azext-utils"; | ||
| /*--------------------------------------------------------------------------------------------- | ||
| * Copyright (c) Microsoft Corporation. All rights reserved. | ||
| * Licensed under the MIT License. See License.md in the project root for license information. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| import type { AzureSubscriptionProvider } from "@microsoft/vscode-azext-azureauth"; | ||
| import { type AzureDevOpsSubscriptionProviderInitializer, createAzureDevOpsSubscriptionProviderFactory } from "@microsoft/vscode-azext-azureauth/azdo"; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should move this out so it's actually in the test code, and thus all the stuff doesn't get bundled. |
||
| import type { IActionContext } from "@microsoft/vscode-azext-utils"; | ||
| import { createVSCodeAzureSubscriptionProviderFactory } from "./VSCodeAzureSubscriptionProvider"; | ||
|
|
||
| /** | ||
|
|
@@ -32,7 +38,7 @@ export function getSubscriptionProviderFactory(activateContext?: IActionContext) | |
|
|
||
| const initializer: AzureDevOpsSubscriptionProviderInitializer = { | ||
| serviceConnectionId, | ||
| domain, | ||
| tenantId: domain, | ||
| clientId, | ||
| }; | ||
| return createAzureDevOpsSubscriptionProviderFactory(initializer); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be reduced to just the
getAvailableSubscriptionscall