git-credential-manager icon indicating copy to clipboard operation
git-credential-manager copied to clipboard

GCM not presenting me with `browser` option when cloning from GitLab remote repository

Open garysassano opened this issue 1 year ago • 7 comments

Version

2.4.10

Operating system

Windows

OS version or distribution

Windows 10 Enterprise LTSC, WSL2 with Ubuntu 24.04

Git hosting provider(s)

GitLab

Other hosting provider

No response

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

None

Can you access the remote repository directly in the browser?

Yes, I can access the repository

Expected behavior

When cloning the repository I expect to be provided all the options.

Actual behavior

I can only choose between pat and basic modes, no option for browser mode.

image

Logs

No response

garysassano avatar Oct 11 '24 13:10 garysassano

Hello! Can I ask if you're using GCM installed in Windows (accessed via WSL), or GCM installed in the Ubuntu distribution?

mjcheetham avatar Oct 11 '24 14:10 mjcheetham

Also if you're using GCM as installed inside of the Ubuntu distribution, can you check if any of the following commands are installed (at least one is required to be able to launch your browser):

  • xdg-open
  • gnome-open
  • kfmclient
  • wslview

mjcheetham avatar Oct 11 '24 14:10 mjcheetham

@mjcheetham GCM is installed in Windows and configured as described in Microsoft's Docs.

image

garysassano avatar Oct 11 '24 14:10 garysassano

Are you using GitLab.com or a self-hosted, or other instance?

mjcheetham avatar Oct 11 '24 14:10 mjcheetham

The domain is gitlab.<org>.co, it's the GitLab Community Edition.

garysassano avatar Oct 11 '24 14:10 garysassano

Have you configured your GitLab instance, and GCM to support OAuth/browser authentication? Only GitLab.com comes configured out of the box. GitLab doesn't include a GCM OAuth application on self-hosted instances.

https://github.com/git-ecosystem/git-credential-manager/blob/main/docs/gitlab.md

mjcheetham avatar Oct 11 '24 14:10 mjcheetham

I see, I would need to ask since I don't manage the organization. I just use Okta Dashboard to log into everything.

garysassano avatar Oct 11 '24 15:10 garysassano

Hello @garysassano, is this still active issue? I can see that this discussion happened more than a year ago. Please let us know if the issue still persist or I will close it.

xfabo1 avatar Dec 04 '25 14:12 xfabo1