Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » jgit credential helper?
jgit credential helper? [message #1682535] Tue, 17 March 2015 15:30 Go to next message
Eclipse UserFriend
I am using amazon code commit, which is their cloud git. However, it doesn't use the typical username + password for authentication. Instead, it uses the IAM like all the rest of their services. This seems to create a problem for jgit.

This is what is used instead:

[credential]
helper = !aws --profile CodeCommitProfile codecommit credential-helper $@
UseHttpPath = true

This works fine on the command line with the OS git, but jgit asks for username and password and fails when it is not given it with authentication failed messages.

Is there a way to use the credential helper instead?

[Updated on: Tue, 17 March 2015 15:31] by Moderator

Re: jgit credential helper? [message #1682678 is a reply to message #1682535] Tue, 17 March 2015 16:48 Go to previous messageGo to next message
Eclipse UserFriend
Shaun,

this article describes how JGit can be configured to push and fetch
to/from Amazon S3:
http://blog.spearce.org/2008/07/using-jgit-to-publish-on-amazon-s3.html

Since both - S3 and CodeCommit - use IAM, the described approach might
help in your case.

HTH
Rüdiger
--
Rüdiger Herrmann
http://codeaffine.com

On 17.03.2015 20:30, Shaun Mising name wrote:
> I am using amazon code commit, which is there cloud git. However, it
> doesn't use the typical username + password for authentication. Instead,
> it uses the IAM like all the rest of their services. This seems to
> create a problem for jgit.
> This is what is used instead:
>
> [credential]
> helper = !aws --profile CodeCommitProfile codecommit
> credential-helper $@
> UseHttpPath = true
>
> This works fine on the command line with the OS git, but jgit asks for
> username and password and fails when it is not given it with
> authentication failed messages.
> Is there a way to use the credential helper instead?
Re: jgit credential helper? [message #1683167 is a reply to message #1682678] Tue, 17 March 2015 21:14 Go to previous message
Eclipse UserFriend
It doesn't quite work the same. It looks like the amazon-s3 url expects them to be in a specific bucket (no surprise). They aren't in buckets here, so it fails.
Previous Topic:EGit Deleted My Project!
Next Topic:How to push a specific commit to a remote repo
Goto Forum:
  


Current Time: Fri Sep 26 00:49:51 EDT 2025

Powered by FUDForum. Page generated in 0.05288 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top