git-ecosystem / git-credential-manager

Secure, cross-platform Git credential storage with authentication to GitHub, Azure Repos, and other popular Git hosting services.
Other
5.93k stars 1.61k forks source link

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

Open lostmsu opened 1 month ago

lostmsu commented 1 month ago

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:

Logs

No response

lostmsu commented 1 month ago

As a workaround I switched to SSH authentication.

jochenhz commented 1 month ago

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?

mjcheetham commented 3 weeks ago

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