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

Support .netrc file #2455

Open
bachp opened this issue Oct 23, 2024 · 0 comments
Open

Support .netrc file #2455

bachp opened this issue Oct 23, 2024 · 0 comments

Comments

@bachp
Copy link

bachp commented Oct 23, 2024

Curl defines a .netrc format that allows to specify credentials per URL.

It is supported by various other projects including

There are already ways to do this via 3rd party crates like reqwest-netrc, but it requires the reqwest client to be wrapped in reqwest-middleware. Having this feature directly in reqwests would simplify providing authentication for projects depending on reqwests. For example to provide authentication to vargo-vet.

I think it would be beneficial to be enabled by default and have a builder option to opt out no_netrc. But an opt in via with_netrc would also be work

Repository owner deleted a comment Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant