Enable sending an authentication header when requesting a crate for download #9494
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Describe the problem you are trying to solve
An artifactory private repositories behind a proxy. Cargo gets index fine, can't use git b/c multiple reasons, download doesn't send token.
Describe the solution you'd like
New config "[http] auth-for-download=true" (name suggestions welcome). If set, sets appropriate token to authentication header.
Notes
There was another issue related to this but my search-fu failed to find it, some of them got closed via the git-fetch-cli, but was unsatisfying to a few.
Outstanding questions:
I have a meh implementation, but it's got a few things I'm not in love with. I will follow-up with a note on the subject. Working on a unit test now (don't really know how to validate it), and have to await permission from my corporate legal to submit an outgoing update.
The other thing I'm thinking of is that there probably should be separate proxy and net sections for different repos. :b...
The text was updated successfully, but these errors were encountered: