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

Added support for custom git http user agent and header #110

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

pschoepf
Copy link

Some environments (especially in larger enterprise) might require additional authentication credentials via http headers or cookies . In my case one needs to send an additional cookie for each request which is obtained via multi-factor-auth. I have seen similar cases for others (see also here [1]). With git this is normally easy to achieve using the http.extraheader config option. I added a small hook to be able to set this via system environment variable. I also initially thought about adding this as part of the preferences or authentication dialog but since this is kind of special feature and the MFA cookie might change every day it is probable the easiest way to go via env variables.
In addition I also added a similar feature for the http user agent since our reverse proxy configuration does not seem to allow JGit user agents.

[1] https://www.eclipse.org/forums/index.php/t/1072183/

additional http headers via system environment properties.
@Phillipus
Copy link
Member

Thanks, I'll take a look at this.

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

Successfully merging this pull request may close these issues.

None yet

2 participants