Skip to content

Allow blank token in config#185

Closed
so0k wants to merge 1 commit intopython-gitlab:masterfrom
so0k:master
Closed

Allow blank token in config#185
so0k wants to merge 1 commit intopython-gitlab:masterfrom
so0k:master

Conversation

@so0k
Copy link

@so0k so0k commented Nov 21, 2016

Using a config with http_username/http_password only (no token) did not work...

The changes in this pull request allow usage of gitlab-cli with the following config:

[global]
default = example
ssl_verify = true
timeout = 5

[example]
url = https://gitlab.example.com
http_username = root
http_password = mypassword

@so0k
Copy link
Author

so0k commented Nov 21, 2016

should probably test if http_username & http_password are blank and throw auth error

@gpocentek
Copy link
Contributor

Thank you for this patch.

I didn't know it was possible to disabled token authentication. Could you tell me where this should be configured on the gitlab side?

Also the travis test fails, this probably means something unexpected now happens with token authentication. Could you check?

@gpocentek
Copy link
Contributor

I'm closing this PR since it didn't get an answer or an update in months. Feel free to provide a new one.

@gpocentek gpocentek closed this Sep 10, 2017
@so0k
Copy link
Author

so0k commented Sep 10, 2017

It's ok, works in my fork

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