git-ecosystem / git-credential-manager

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

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

Open garysassano opened 3 weeks ago

garysassano commented 3 weeks ago

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

mjcheetham commented 3 weeks ago

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

mjcheetham commented 3 weeks ago

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):

garysassano commented 3 weeks ago

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

image

mjcheetham commented 3 weeks ago

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

garysassano commented 3 weeks ago

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

mjcheetham commented 3 weeks ago

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

garysassano commented 3 weeks ago

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