git-ecosystem/git-credential-manager

JavaScript error - Object doesn't support property or method "addEventListener"

lostmsu opened this issue · 3 comments

Version

2.5.0

Operating system

Windows

OS version or distribution

Windows 10 22H2

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

Should be able to authenticate

Actual behavior

in the manager popup:

  • I click add account
  • type my email
  • the error pops up
    image

Logs

No response

As a workaround I switched to SSH authentication.

I second this, lots of our users report the same issue when authenticating with Azure DevOps using GCM 2.5.0. It just started to appear, so it might not be an issue with GCM but with Azure directly. Anything we can provide to you guys that might be helpful?

The issue here is that the MSAL library uses the original WebView control for the embedded browser prompts for Azure, which is based on Internet Explorer(!). Looks like they've broken WebView1 support with the Azure Entra ID login prompts.

Can you try switching to use the system browser instead?

git config --global credential.msauthFlow system

Docs