-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Private repository with basic auth #4623
Comments
I got the same error but only after upgrading to 1.1.9+. Older versions work well for me. We could reproduce the problem on different machines.
Maybe this information helps... |
I am also having this issue. I am using: I've observed that when running The current workaround I've found is to disable the keyring library, and edit the I can confirm using |
I can report I've tried almost every version from 1.0 to the current beta and I still get the 401. I am using a Ubuntu based Python Docker image. |
This should be working on Poetry 1.2, and does not reproduce for me on Ubuntu 20.04. If you are having issues with correctly configured credentials not being passed, please open a new issue with a detailed reproduction. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
Hello,
first of all, thanks for this great packaging tool :)
I have some questions (and a feeling a part of it might be a bug ?) about using poetry with private repository with basic auth.
My setup is:
Would be happy with having uri inside of
pyproject.toml
, but the credentials set via env vars or cli (as a part of a pipeline job).Regarding cli,
poetry config http-basic.nexus username password
should do the trick, however, it doesn't.Only way it works is to put the creds into repo uri as part of
[[tool.poetry.source]]
.poetry config http-basic.nexus username password
will be somehow persisted somewhere, aspoetry config --list
shows related section, but won't get used by poetry / pip while accessing the repository (?)Setting
poetry config http-basic.nexus username password
but ommiting credentials in the[[tool.poetry.source]]
section leads to 401 / Unauthorized responses. Looks like resolving dependencies against nexus pypi repository requires repo url contains credentials.Update:
similar behavior mentioned here: #4389
However, setting
POETRY_HTTP_BASIC_NEXUS_USERNAME
&POETRY_HTTP_BASIC_NEXUS_PASSWORD
("NEXUS" due to my setting of repo name, see gist file) doesn't auth the request like mentioned in the issue.Thanks for any help in advice.
Adrian
The text was updated successfully, but these errors were encountered: