git-ecosystem / git-ecosystem/git-credential-manager

GIT credential manager does not seem to jump into action when trying to clone a repository

Open
#1,780 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auth-issue
Dominant language
C#
Stars
9.3k
Forks
2.9k
Avg merge
7d 1h
Merged PRs (30d)
14

Description

Version

2.6.0+3c28096588f549cb46f36b552390514356830abe

Operating system

macOS

OS version or distribution

15.1.1 (24B91)

Git hosting provider(s)

GitHub Enterprise Server

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

The Credential Helper should open a login dialog.

Actual behavior

No login dialog is presented. The clone operation fails:

stephan@myMacBookProM2 ShellScripts % git config --global -l                                                                                                
user.name=Stephan Sann
user.email=stephan@sann.name
core.excludesfile=/Users/stephan/.gitignore_global
difftool.sourcetree.cmd=opendiff "$LOCAL" "$REMOTE"
difftool.sourcetree.path=
mergetool.sourcetree.cmd=/Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh "$LOCAL" "$REMOTE" -ancestor "$BASE" -merge "$MERGED"
mergetool.sourcetree.trustexitcode=true
commit.template=/Users/stephan/.stCommitMsg
safe.barerepository=explicit
credential.https://dev.azure.com.usehttppath=true
credential.helper=/usr/local/share/gcm-core/git-credential-manager

stephan@myMacBookProM2 ShellScripts % git clone https://github.adgr.net/IT-Security/PAM.git /Users/stephan/Storage/@SITS/Developer/VRepo/PAM --progress 
Cloning into '/Users/stephan/Storage/@SITS/Developer/VRepo/PAM'...
fatal: unable to update url base from redirection:
  asked for: https://github.adgr.net/IT-Security/PAM.git/info/refs?service=git-upload-pack
   redirect: https://login.microsoftonline.com/98233a1c-af5a-4699-a2c7-9b082989c5a0/saml2?SAMLRequest=jZLdauMw[...]
stephan@myMacBookProM2 ShellScripts %
Logs

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported macOS clone command against the GitHub Enterprise Server URL and observe the SAML redirect. Trace how the credential helper handles that redirect, then verify that authentication presents a login dialog and the clone completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.