Skip to content

Add support for using the current Windows user for WAM on DevBox#1197

Merged
mjcheetham merged 2 commits into
git-ecosystem:mainfrom
mjcheetham:devbox
May 2, 2023
Merged

Add support for using the current Windows user for WAM on DevBox#1197
mjcheetham merged 2 commits into
git-ecosystem:mainfrom
mjcheetham:devbox

Conversation

@mjcheetham

@mjcheetham mjcheetham commented Apr 11, 2023

Copy link
Copy Markdown
Contributor

Add the ability to configure MSAL to use the default OS account when the broker is enabled.
Also detect when we are in a Microsoft Dev Box environment, and if we are, then default to enabling the new setting (and enable WAM).

Show a confirmation prompt before continuing to use the current OS account, which is similar to how Microsoft Teams operates.

windows-defaultaccount

Left: Avalonia UI, Right: fallback WPF window

Fixes #917

@mjcheetham mjcheetham added auth:entra Specific to Microsoft Entra Authentication windows-broker labels Apr 11, 2023
@mjcheetham
mjcheetham requested a review from ldennington April 11, 2023 21:51
@mjcheetham
mjcheetham force-pushed the devbox branch 4 times, most recently from 57ed706 to 8e92194 Compare April 18, 2023 16:55
@mjcheetham
mjcheetham force-pushed the devbox branch 4 times, most recently from 5489a49 to 385b132 Compare April 25, 2023 16:47
@mjcheetham
mjcheetham marked this pull request as ready for review April 25, 2023 18:02
Add the ability to configure MSAL to use the default OS account when the
broker is enabled.

Default to disabled.
@mjcheetham
mjcheetham force-pushed the devbox branch 2 times, most recently from 8a4136a to 6f97034 Compare April 25, 2023 21:49
Detect when we are in a Microsoft Dev Box environment, and if we are,
then default to enabling the default OS account setting and enabling
WAM.

@ldennington ldennington 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.

This is awesome, Matthew! Aside from the initial wait time, the Dev Box stuff is pretty cool, and it's very slick that the broker/default account functionality are used automatically there. I tested various GUI and terminal scenarios, and all seems to be in order.

@mjcheetham
mjcheetham merged commit 92145d7 into git-ecosystem:main May 2, 2023
@mjcheetham
mjcheetham deleted the devbox branch May 2, 2023 18:38
mjcheetham added a commit that referenced this pull request May 2, 2023
**Changes:**

- Support ports in URL-scoped config (#825)
- Support URL-scoped enterprise default settings (#1149)
- Add support for client TLS certificates (#1152)
- Add TRACE2 support(#1131, #1151, #1156, #1162)
- Better browser detection inside of WSL (#1148)
- Handle expired OAuth refresh token for generic auth (#1196)
- Target *-latest runner images in CI workflow (#1178)
- Various bug fixes:
  - Ensure we create a WindowsProcessManager on Windows (#1146)
  - Ensure we start child processes created with ProcessManager (#1177)
  - Fix app path name of Windows dropping file extension (#1181)
  - Ensure we init IEnvironment before SessionManager (#1167)
  - git: consistently read from stdout before exit wait (#1136)
  - trace2: guard against null pipe client in dispose (#1135)
- Make Avalonia UI the default Windows and move to in-process (#1207)
- Add Git configuration options for trace & debug (#1228)
- Transition from Nerdbank.GitVersioning to a version file (#1231)
- Add support for using the current Windows user for WAM on DevBox
(#1197)
- Various documentation updates:
  - org-rename: update references to GitCredentialManager (#1141)
  - issue templates: remove core suffix (#1180)
  - readme: add link to project roadmap (#1204)
  - docs: add bitbucket app password requirements (#1213)
  - .net tool: clarify install instructions (#1126)
  - docs: call out different GCM install paths in WSL docs (#1168)
  - docs: add trace2 to config/env documentation (#1230)
nyila

This comment was marked as spam.

@mjcheetham mjcheetham added platform:windows Specific to the Windows platform entra:broker Related to the authentication broker for Entra Authentication and removed windows-broker labels Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auth:entra Specific to Microsoft Entra Authentication entra:broker Related to the authentication broker for Entra Authentication platform:windows Specific to the Windows platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable SSO capabilities with the Windows signed in user while on Dev Box

3 participants