-
Notifications
You must be signed in to change notification settings - Fork 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
Kerberos support #6708
Comments
Related to #4475. |
Specifically, how is this not achievable with the keyring support? The bootstrapping issue with keyring (you'd need keyring and your backend installed) is that's the tradeoff for having a minimal core utility with extensive support for authentication backends. |
Keyring is a pluggable interface for providing a username and password. Currently we only support using that username/password for basic auth i.e. Authentication http header with Basic and base64 encoded credentials. Kerberos uses a different flow altogether. See wiki. |
It would be great if we could finally get something in so that pip can have Kerberos support. |
Oh, I didn't realize this issue existed when I made #4854 (comment). Anyway, thanks for all the work you've done on this @cryvate! It's much appreciated. ^>^ |
Edited the PR description to link to here. |
Please see my comment at #4475 (comment) |
We need kerberos-proxy authentication in pip otherwise our developers cannot install any packages (our proxy support only kerberos authentication). I already wrote a patch for requests-kerberos: requests/requests-kerberos#148 |
Same situation here. Regarding the details: PS: @christophvw I added a few lines of code to your patch |
I’m going to use #4475 as an aggregated tracking issue for all these similar problems, since it is unlikely pip is going to add support for each authentication methods separately. |
What's the problem this feature will solve?
pip cannot currently use Kerberos for authentication with web servers that support it, which may be acting as PyPI mirrors or private package repositories.
Describe the solution you'd like
If required dependencies are present, and a request to the configured server fails with headers that indicate Kerberos is supported, then attempt Kerberos authentication.
Alternative Solutions
N/A
Additional context
This is an attempt to progress #4854 by allowing discussion without the noise associated with a PR.
Currently pip only supports basic authentication with credentials provided either via keyring or inclusion in the
index
/index-url
URL itself. Kerberos, as described here, would not be able to use the current basic auth mechanism for negotiation.The text was updated successfully, but these errors were encountered: