Skip to content

Switch to using OAuth tokens (Azure Repos) and the MS auth broker by default - #2449

Open
mjcheetham wants to merge 3 commits into
git-ecosystem:mainfrom
mjcheetham:azrepos-newauth-default
Open

mjcheetham wants to merge 3 commits into
git-ecosystem:mainfrom
mjcheetham:azrepos-newauth-default

Conversation

@mjcheetham

Copy link
Copy Markdown
Contributor

Update the defaults for the Azure Repos credential type and Microsoft authentication broker enabled to oauth and true respectively. With the new GCM major version bump to 3.x, along with the new Entra 1st party application and Mac & Linux broker support, we are ready to adopt these by default.

The settings remain for those that need to revert back to pat and broker-less (false) auth.

Finally we update the documentation for the broker with new images, behaviour, and updated sections for Mac and Linux:

Rendered broker docs

@mjcheetham
mjcheetham requested review from dscho and mpysson and a balanced review from Copilot September 17, 2026 09:29
@mjcheetham
mjcheetham requested a review from a team as a code owner September 17, 2026 09:29
@mjcheetham mjcheetham added host:azure-repos Specific to the Azure Repos (Azure DevOps, VSTS) host provider auth:entra Specific to Microsoft Entra Authentication docs Documentation changes entra:broker Related to the authentication broker for Entra Authentication labels Sep 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Existing PAT-mode tests now follow the OAuth path, and the new defaults lack corresponding test updates.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Changes Azure Repos authentication defaults for GCM 3.0 and introduces cross-platform broker documentation.

Changes:

  • Defaults Azure Repos to OAuth tokens and enables broker authentication.
  • Retains configuration options for PAT and brokerless authentication.
  • Replaces Windows-only broker guidance with cross-platform documentation.
File summaries
File Description
src/Microsoft.AzureRepos/AzureReposHostProvider.cs Defaults Azure Repos credentials to OAuth.
src/Core/Authentication/Entra/EntraAuthentication.PublicClient.cs Enables the OS authentication broker by default.
README.md Advertises cross-platform broker support.
docs/windows-broker.md Removes superseded Windows-only documentation.
docs/msauth-broker.md Adds cross-platform broker guidance.
docs/environment.md Documents updated environment-variable defaults.
docs/configuration.md Documents updated Git configuration defaults.
docs/azrepos-users-and-tokens.md Updates Entra ID terminology.
Review details

Suppressed comments (2)

docs/msauth-broker.md:140

  • “Sign in” is a verb and should not be hyphenated here.
> If you are using local accounts on Windows, when you first sign-in to a

docs/msauth-broker.md:145

  • The extra breadcrumb separator makes this read “Your info > and select.” Remove it before the instruction.
from the Settings app: [**Accounts** > **Your info**][appx-settings-yourinfo] >
  • Files reviewed: 8/19 changed files
  • Comments generated: 11
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/Microsoft.AzureRepos/AzureReposHostProvider.cs
Comment thread src/Core/Authentication/Entra/EntraAuthentication.PublicClient.cs
Comment thread docs/msauth-broker.md Outdated
Comment thread docs/msauth-broker.md Outdated
Comment thread docs/msauth-broker.md Outdated
Comment thread docs/msauth-broker.md Outdated
Comment thread docs/msauth-broker.md Outdated
Comment thread docs/msauth-broker.md Outdated
Comment thread docs/msauth-broker.md Outdated
Comment thread docs/msauth-broker.md Outdated
@mjcheetham
mjcheetham force-pushed the azrepos-newauth-default branch 2 times, most recently from 1431a4c to 86bdec6 Compare September 17, 2026 09:39
Change the default from PAT to OAuth bearer token credentials for Azure
Repos.

Also update the documentation references to "AAD" to "Entra ID"
following the rename by Microsoft.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
Change the default option for the MS authentication broker to 'enabled'
on all platforms and environments.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
Update the "WAM/Windows broker" docs to now cover the Microsoft
authentication broker on all OSes (Windows, Mac, Linux). Include new
features, updated screenshots, and information about device join and how
to disconnect.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
@mjcheetham
mjcheetham force-pushed the azrepos-newauth-default branch from 86bdec6 to 20fa90c Compare September 17, 2026 09:57
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 docs Documentation changes entra:broker Related to the authentication broker for Entra Authentication host:azure-repos Specific to the Azure Repos (Azure DevOps, VSTS) host provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants