Skip to content

entra: do not use default account on DevBox - #2459

Merged
mjcheetham merged 1 commit into
git-ecosystem:mainfrom
mjcheetham:fix-devbox-otheruser
Sep 28, 2026
Merged

mjcheetham merged 1 commit into
git-ecosystem:mainfrom
mjcheetham:fix-devbox-otheruser

Conversation

@mjcheetham

Copy link
Copy Markdown
Contributor

As of GCM 3.0, the 'UseMsAuthDefaultAccount' setting is now a tri-state flag, which has the following meanings:

  true  => always use the OS account
  false => never use the OS account
  unset => ask to use the OS account

This means that, on DevBox, where we currently special-case and return 'true' for this setting, the user has no way to sign-in to an Entra-backed provider using a different account than the OS default account.

Remove the special-casing of DevBox, and return null (unset) so the user continues to see the prompt.

Until we can wire-up continue=1 and retry logic to the Azure Repos provider, we need to make the user experience better for this scenario.

Note, there is an obscure workaround: manually bind your Azure DevOps org to a different account - this is not very discoverable.

As of GCM 3.0, the 'UseMsAuthDefaultAccount' setting is now a tri-state
flag, which has the following meanings:

  true  => always use the OS account
  false => never use the OS account
  unset => ask to use the OS account

This means that, on DevBox, where we currently special-case and return
'true' for this setting, the user has no way to sign-in to an
Entra-backed provider using a _different_ account than the OS default
account.

Remove the special-casing of DevBox, and return `null` (unset) so the
user continues to see the prompt.

Until we can wire-up `continue=1` and retry logic to the Azure Repos
provider, we need to make the user experience better for this scenario.

Note, there is an obscure workaround: manually bind your Azure DevOps
org to a different account - this is not very discoverable.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
@mjcheetham
mjcheetham requested a review from dscho September 28, 2026 15:29
@mjcheetham
mjcheetham requested a review from a team as a code owner September 28, 2026 15:29

@dscho dscho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice and easy!

@mjcheetham
mjcheetham merged commit bb83cfc into git-ecosystem:main Sep 28, 2026
37 of 38 checks passed
@mjcheetham
mjcheetham deleted the fix-devbox-otheruser branch September 28, 2026 15:51
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