diff options
author | Peter Mosmans <support@go-forward.net> | 2016-05-30 13:05:58 +1000 |
---|---|---|
committer | Peter Mosmans <support@go-forward.net> | 2016-05-30 13:05:58 +1000 |
commit | e9e48b9188e00298573bb2f407a854c8bf8a6dff (patch) | |
tree | 4d38387d85a4ed245c6384858ce553c69007608d /gitlab/config.py | |
parent | 1b14f5c9b1ff0af083abedff80eafb9adcae629c (diff) | |
download | gitlab-e9e48b9188e00298573bb2f407a854c8bf8a6dff.tar.gz |
Added support for HTTP basic authentication
Diffstat (limited to 'gitlab/config.py')
-rw-r--r-- | gitlab/config.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gitlab/config.py b/gitlab/config.py index 4d0abb8..3ef2efb 100644 --- a/gitlab/config.py +++ b/gitlab/config.py @@ -78,3 +78,13 @@ class GitlabConfigParser(object): self.timeout = self._config.getint(self.gitlab_id, 'timeout') except Exception: pass + + self.http_username = None + self.http_password = None + try: + self.http_username = self._config.get(self.gitlab_id, + 'http_username') + self.http_password = self._config.get(self.gitlab_id, + 'http_password') + except Exception: + pass |