Skip to content

Added support for HTTP basic authentication #120

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

Merged
merged 1 commit into from
May 30, 2016

Conversation

PeterMosmans
Copy link
Contributor

Support for HTTP basic authentication

The username and password can be specified in the configuration file

http_username
http_password

@gpocentek
Copy link
Contributor

The patch looks good, thank you (will test ASAP).

I'm a bit curious about how you use this though. Do you use both HTTP auth and token auth? Is there any reason why?

@PeterMosmans
Copy link
Contributor Author

Hi @gpocentek , yes, I use both: Certain gitlab servers that I use are protected behind a HTTP basic authentication interface. This protects them from potential issues in the gitlab API (think defense-in-depth). After that is the 'usual' gitlab authentication (either tokens or username/password).

@gpocentek gpocentek merged commit 11f1e2d into python-gitlab:master May 30, 2016
@gpocentek
Copy link
Contributor

Thanks!

@PeterMosmans PeterMosmans deleted the basicauth branch May 30, 2016 23:54
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.

2 participants