You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a private PyPI that requires basic HTTP-based authentication credentials, the user is prompted twice for credentials. First, for the initial request to install the packages. Second, for the pip version check. This means the user must enter their username and password twice: once for the package (and its dependencies), and then again for the pip version check.
In my debugging, I saw 2 GET requests sent for /pip/. One request happens without credentials, the user is prompted, and another GET happens with credentials.
Expected behavior
The user should be prompted once for the username/password. Those credentials should be used for all requests.
pip version
24.0
Python version
3.11.9
OS
macOS
How to Reproduce
Create PyPI with required HTTP authentication and add packages to it.
The pip version will be checked, at which point you will be prompted again for your username & password
Output
~ ❯ pip install my-package --index-url https://repo.url --force-reinstall --no-cache-dir
Looking in indexes: https://repo.url
User for repo.url: username
Password:
Save credentials to keyring [y/N]: n
Collecting ....
Successfully installed ....
reply: 'HTTP/1.1 401 Unauthorized\r\n'
User for repo.url: username
Password:
Save credentials to keyring [y/N]: n
Description
Given a private PyPI that requires basic HTTP-based authentication credentials, the user is prompted twice for credentials. First, for the initial request to install the packages. Second, for the pip version check. This means the user must enter their username and password twice: once for the package (and its dependencies), and then again for the pip version check.
In my debugging, I saw 2 GET requests sent for
/pip/
. One request happens without credentials, the user is prompted, and another GET happens with credentials.Expected behavior
The user should be prompted once for the username/password. Those credentials should be used for all requests.
pip version
24.0
Python version
3.11.9
OS
macOS
How to Reproduce
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: