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

fix: fix two issues #391

Merged
merged 3 commits into from
Feb 19, 2025
Merged

fix: fix two issues #391

merged 3 commits into from
Feb 19, 2025

Conversation

@@ -190,7 +190,7 @@ export class AzureAccountTreeItem extends AzExtParentTreeItem {
subscriptionId: subscription.subscriptionId || "",
subscriptionPath: `/subscriptions/${subscription.subscriptionId}`,
tenantId: subscription.tenantId || "",
userId: session.account.id,
userId: session.account.label,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this filed is align with azure account, debugging with azure account, this userId is user's email.

@@ -154,9 +155,10 @@ async function populateIdentityOptionsAsync(

// 1. Self
const token = await credential.getToken();
const decoded = jwt.decode(token.token, { complete: true }) as any;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this bug is that azure account return token as a deviceTokenCredentials, in vscode session not support for this, so we need to decode the jwt token.

@blackchoey blackchoey merged commit 8b27871 into main Feb 19, 2025
2 checks passed
@blackchoey blackchoey deleted the fix/account branch February 19, 2025 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants