You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sign In with Account A using the AzureSubscriptionProvider.signIn() method
You can see all the subs of A
Click Account -> Manage trusted extensions and remove just used extension
Sign In with Account B using the AzureSubscriptionProvider.signIn() method
You cannot get any subscription. It returns an empty [ ]
Related code
let disposable2 = vscode.commands.registerCommand('authtest.listSubs', async () => {
const provider = await ext.subscriptionProviderFactory();
if (!await provider.isSignedIn()) {
void provider.signIn();
}
if (await provider.isSignedIn()) {
vscode.window.showInformationMessage('Signed in!');
var l = await provider.getSubscriptions(false);
vscode.window.showInformationMessage('Got subscriptions!' + l.length);
}
});
The text was updated successfully, but these errors were encountered:
xiaolang124
changed the title
[@microsoft/vscode-azext-azureauth] Remove trusted extension and Sign in to second account will get empty subs
[@microsoft/vscode-azext-azureauth] Removing the trusted extension and signing in to a second account may result in empty subscriptions
Mar 6, 2024
Steps to repro:
Related code
The text was updated successfully, but these errors were encountered: