Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » jgit credential helper?
jgit credential helper? [message #1682535] Tue, 17 March 2015 19:30 Go to next message
Shaun Mising name is currently offline Shaun Mising nameFriend
Messages: 5
Registered: July 2009
Junior Member
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 19:31]

Report message to a moderator

Re: jgit credential helper? [message #1682678 is a reply to message #1682535] Tue, 17 March 2015 20:48 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
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] Wed, 18 March 2015 01:14 Go to previous message
Shaun Mising name is currently offline Shaun Mising nameFriend
Messages: 5
Registered: July 2009
Junior Member
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: Tue Apr 16 21:01:13 GMT 2024

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

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

Back to the top