Skip to content

Fix Sign In command not showing consent dialog when already signed in#1418

Merged
alexweininger merged 1 commit intomainfrom
fix/sign-in-consent-dialog-1414
Mar 26, 2026
Merged

Fix Sign In command not showing consent dialog when already signed in#1418
alexweininger merged 1 commit intomainfrom
fix/sign-in-consent-dialog-1414

Conversation

@alexweininger
Copy link
Copy Markdown
Member

Problem

When a user is already signed in and runs Azure: Sign In (F1 → Azure: Sign In), no consent dialog appears. The views refresh silently with no feedback.

Root Cause

The azureResourceGroups.logIn command called logIn(context) without clearSessionPreference: true, allowing VS Code to silently reuse the existing session instead of showing the account picker.

Fix

Pass { clearSessionPreference: true } to match the behavior of the Add Account command, which already works correctly.

Fixes #1414

Pass clearSessionPreference: true to the logIn command so that the
account picker always appears, matching the behavior of Add Account.

Fixes #1414

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@alexweininger alexweininger requested a review from a team as a code owner March 26, 2026 22:20
Copilot AI review requested due to automatic review settings March 26, 2026 22:20
@alexweininger alexweininger enabled auto-merge (squash) March 26, 2026 22:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Azure: Sign In command wiring to ensure VS Code does not silently reuse an existing Microsoft session, so users see the expected consent/account picker flow when they run the command while already signed in (fixes #1414).

Changes:

  • Pass { clearSessionPreference: true } to the logIn helper for azureResourceGroups.logIn to match Add Account behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@alexweininger alexweininger merged commit c2a8832 into main Mar 26, 2026
7 checks passed
@alexweininger alexweininger deleted the fix/sign-in-consent-dialog-1414 branch March 26, 2026 22:23
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.

Microsoft sign-in consent dialog is not shown when running the “Azure: Sign In” command while an account is already signed in

3 participants