New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cfg4j-git doesn't support authentication with private git repositiries #180
Comments
The exceptions thrown looks like:
|
Just ran into this issue as well. I installed a local gitLab repo (https://about.gitlab.com/) and tried to connect to it. |
Hi I would like to use cfg4j for our production servers, But this issue stops me from doing it.
Is this going to be fixed? |
Cant use this - as it does not support private git repos with credentials |
Try using cfg4j-git to access a private repository, using this demo as an example
https://github.com/cfg4j/cfg4j-sample-apps/tree/master/git-simple
First of all, there is no means to provide credentials to the private repo. Although, the underlying org.eclipse.jgit seems to parse the username and password from the repositoryURI, e.g. in CloneCommand class, line 133
URIish u = new URIish(uri);
And URIish class constructor, line 220
And these details don't seem to be used at all.
Further to this problem GitConfigurationSource class, e.g. line 147
this doesn't inject a CredentialsProvider, like
which is the right solution to sort out this problem.
The text was updated successfully, but these errors were encountered: