Skip to content

Multiple Authentication Popups with Azure DevOps OAuth Credential Type #2288

@ingOnurCnty

Description

@ingOnurCnty

Version

2.7.0+d1dd8a4ded75a2b1faae653157ac1699609442ad

Operating system

Windows

OS version or distribution

MacOS Tahoe 26.3.1

Git hosting provider(s)

Azure DevOps

Other hosting provider

No response

(Azure DevOps only) What format is your remote URL?

https://{org}@dev.azure.com/{org}

Can you access the remote repository directly in the browser?

Yes, I can access the repository

Expected behavior

Problem:
Our mobile application has multiple dependencies hosted within the same Azure DevOps organization. When resolving these dependencies, we encounter the following issues:

Multiple authentication popups - A separate authentication dialog appears for each dependency, rather than authenticating once for the entire organization.

GCM freezes on dismissal - If any popup is closed without completing authentication, Git Credential Manager (GCM) hangs indefinitely. Multiple git-credential-manager processes accumulate in Activity Monitor and do not terminate.

Root Cause:
This behavior started after switching to azreposCredentialType = oauth. Previously, credentials were stored per organization in Keychain using the format git://{org}@dev.azure.com/{org}, which allowed a single authentication to cover all dependencies within that organization.

Actual behavior

  • Parallel authentications for repos within Azure DevOps organization should be grouped internally (gcm) and lead to a single authentication user prompt.
  • Incase of failure to authenticate exit with non zero exit code.

Logs

gitconfig-redacted.txt
gcm-trace-redacted.log
gcm-git-redacted.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    auth-issueAn issue authenticating to a host

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions