Skip to content

http_username and http_password is not working for api basic authentication #462

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

Closed
jaydip189 opened this issue Mar 16, 2018 · 1 comment

Comments

@jaydip189
Copy link

gl = gitlab.Gitlab('https://gitlab.com', http_username='xxxx', http_password='xxxx',api_version=4)

gitlab.exceptions.GitlabAuthenticationError: 401: 401 Unauthorized

@gpocentek
Copy link
Contributor

http_username and http_password are meant to be used if you have your own gitlab server, with HTTP authentication setup in additional to standard GitLab auth. Gitlab.com doesn't provide this.

User/password authentication has been disabled on gitlab.com, you need to use a token to authenticate.

You can have a look at #380 for the discussion and workarounds.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants