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

HTTP authentication support? #75

Open
Scottapotamas opened this issue Jan 29, 2019 · 4 comments
Open

HTTP authentication support? #75

Scottapotamas opened this issue Jan 29, 2019 · 4 comments
Labels
question Further information is requested

Comments

@Scottapotamas
Copy link

I noticed that the wiki only mentions SSH based repo authentication, I'm forced to use HTTPS due to
firewall rules.

I configured a (long) timeout on the credentials store for git, allowing it to retain my https credentials against repos.

While gitbatch allows for interactive HTTPS auth requests currently, the granted permission isn't maintained across invocations where git normally would cache the credentials.

Is there a recommended way of handling this?

@isacikgoz
Copy link
Owner

Hello @Scottapotamas, I never had a chance to test HTTP authentication but it should work fine just like HTTPS. In wiki, I just wanted to mention that SSH auth's are smooth as butter when you work with git binary itself 👍
If you are using MacOS iCloud Keychain stores HTTP/HTTPS credentials and it shouldn't prompt you to enter credentials. GNOME also has a similar software if you are using GNOME desktop.

@isacikgoz isacikgoz added the question Further information is requested label Feb 23, 2019
@afranke
Copy link

afranke commented Sep 2, 2019

I have a few repos that also force me to use (the same) HTTPS auth and I’m using the GNOME keyring for their password. Even when it is unlocked (by e.g. trying git fetch in the terminal prior to running gitbatch) I get the ! authentication required (u) message.

When I select multiple repos and provide authentication details for of them with u, it is not taken into account for the other ones.

@isacikgoz
Copy link
Owner

Hello @afranke actually it is intended to ask credentials for each login, since some repositories may require different credentials. Also for security reasons I don't want to store them anywhere.

However, it may be a good idea to store credentials while running the program and try to authenticate with that information on the next repo only if share the same "user.email" property.

@ScatteredRay
Copy link

I'm having this problem also on Windows, It's exasperated by using 2fa for GitHub, and having to have an App Token,

The standard Git client is configured to use wincred with

[credential] helper = wincred

I wonder if it's possible to use the same helpers?

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

No branches or pull requests

4 participants