2

I am on Eclipse 2018.12 (actually same issue occurs from other version like Mars2 or Scala-IDE 4.7), I am struggling to get Git/EGit pass authentication while cloning remote repository, which is deployed on my company's server.

The same issue never occur while I am using Git command like or Git GUI or IntelliJ, but only by Eclipse (regardless of Eclipse version or any type of Git plugin)

I think the difference here is from Git bash or Git GUI or IntelliJ, the authentication is implicitly by verifying my Windows credential from local OS credential store with remote server. So Git bash/GUI and IntelliJ never pop up the login screen.

However, the default setup page from Eclipse asks for username/password every time. And after I enter the correct information, the same pop up message just show up again and again, like a sign that the authentication never pass.

Please see screenshot below.

Setup remote repository

Same login screen pops up again and again

Is there anyway to let Eclipse to follow the same way of authentication like Git

6
  • Just check the checkbox Store in Secure Store. Eclipse uses JGit, a Git implementation in Java, whereas most other IDEs and editors delegate to the command line Git which has to be installed.
    – howlger
    Commented Feb 1, 2019 at 19:24
  • @howlger thanks for the information. I checked the box but the login window pop up again. Is there a way to let Eclipse delegate to command line Git? I don't see anywhere to select Git installation like for Mave setup
    – Dreamer
    Commented Feb 1, 2019 at 19:51
  • Which protocol do you use? Delegating to the command line is not an option for good reasons. What exactly must be done to reproduce this issue (for me it works without problems).
    – howlger
    Commented Feb 1, 2019 at 20:03
  • @howlger tried http and https, both gives the same error, the git repository is on TFS server, kind of specific environment that is difficult to reproduce.
    – Dreamer
    Commented Feb 1, 2019 at 20:13
  • Maybe this social.msdn.microsoft.com/Forums/sqlserver/en-US/…
    – howlger
    Commented Feb 1, 2019 at 20:29

1 Answer 1

2

Same issue here. Seems that eGit doesn't support Windows Authentication where as command line Git does.

Work around is to use a Personal Access Token as the password and anything as the username.

You can create a PAT by logging into your TFS/Azure DevOps Website, click on your profile icon at the top right, select Security. Then create a new Personal Access Token and copy the token into the password box in eclipse. Maximum life of a token is 1 year, so you'll need to make a new one every year.

1
  • 1
    Hope I can like this answer a thousand times. Well I should blame myself didn't spend time to play around on the TFS site. But your answer did save me hours of research time. Much appreciated !
    – Dreamer
    Commented May 6, 2019 at 18:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.