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

fix(network/auth): Asks for password when it is None #8027

Merged
merged 1 commit into from
May 19, 2020

Conversation

gutsytechster
Copy link
Contributor

@gutsytechster gutsytechster commented Apr 12, 2020

When get_keyring_auth provides the password as None, the
user should be prompt to ask the password.

This fixes #7998

@gutsytechster
Copy link
Contributor Author

Can this be merged?

@pfmoore
Copy link
Member

pfmoore commented Apr 23, 2020

It needs a review first (I don't personally know the keyring code well enough, but from a technical point of view the change looks OK to me). But even so, merges are on hold until after 20.1 is released. Unless this is viewed as a significant bugfix, worth an exemption, but that would be @pradyunsg's call, as RM.

@gutsytechster
Copy link
Contributor Author

Can this be merged now?

news/7998.bugfix Outdated
@@ -0,0 +1 @@
Ask for password when either the password is None.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably needs to be reworded. It's not very clear what this means as a line in https://pip.pypa.io/en/stable/news/.

I'm not sure what the best phrasing would be, but perhaps someone else would have a suggestion.

Copy link
Contributor

@deveshks deveshks May 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about Prompt the user for password if the keyring backend doesn't return one

When `get_keyring_auth` provides the password as None, the
user should be prompt to ask password.
@pradyunsg pradyunsg merged commit e7dd02c into pypa:master May 19, 2020
@gutsytechster gutsytechster deleted the pip/7998 branch May 23, 2020 11:56
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 14, 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

Successfully merging this pull request may close these issues.

Pip never asks for password when connecting to private repo
5 participants