Skip to content
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

Cannot use basic auth over HTTPS #3954

Closed
ghost opened this issue Sep 6, 2016 · 4 comments
Closed

Cannot use basic auth over HTTPS #3954

ghost opened this issue Sep 6, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Sep 6, 2016

  • Pip version: 8.1.2
  • Python version: 2.6.6
  • Operating System: RHEL6

Description:

Pip fails to authenticated with local repo using basic auth and HTTPS. Rather than using the username/password in the URL, prompts for username instead.

According to (closed) issue #51, it may be due to the password not being URLencoded but haven't confirmed if is the case.

What I've run:

pip install blah -f 'https://:@my.local.repo/pypi'

Please fix ASAP.

@pombredanne
Copy link
Contributor

Could you provide more details, such as a stack/error trace? This is rather hard to investigate otherwise.
Note also that Python 2.6 support may eventually be dropped per #3955

@ghost
Copy link
Author

ghost commented Sep 10, 2016

I was able to confirm it was a problem with funny characters in the password. I temporarily changed to a different password and it works for now. Something funky going on with escaping the password...dont know if 2.6 specific or not.

@willdrew
Copy link

willdrew commented Sep 29, 2016

It is not specific to Python 2.6.

I was unable to authenticate using HTTPS with the password having # in it, attempted to escape using %23, but that did not work (prompted for password). I ended up changing password to alphanumeric only and it worked.

$ pip --version
pip 8.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)

$ python --version
Python 2.7.11+

@xavfernandez
Copy link
Member

Ok, closing as duplicate of #3236

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 16, 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

3 participants