Skip to content
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

Support for passing username/password in URL for HTTPS connections #46

Closed
szpak opened this issue Dec 14, 2014 · 2 comments
Closed

Support for passing username/password in URL for HTTPS connections #46

szpak opened this issue Dec 14, 2014 · 2 comments

Comments

@szpak
Copy link
Contributor

szpak commented Dec 14, 2014

Git itself supports passing username or/and password in HTTPS connection URL, e.g.

https://user@pass:host.xz/path/to/repo.git/

That mechanism is used for example when pushing to GitHub from CI server with security tokens.

There is a simple workaround - passing username/password in Credential object, but it could be hard to apply/not supported when GrGit is used through the 3rd tools. Therefore it would be good to support also credentials encoded in the URL.

@ajoberstar
Copy link
Owner

Since, I'm just passing the URLs straight into JGit, I think that's where the limitation is. Another way to work around this would be to use the system properties noted in the docs.

@szpak
Copy link
Contributor Author

szpak commented Dec 18, 2014

Probably jgit would be a better place to send that issue.

I have missed those system properties. In fact they could be an alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants