-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
.netrc not honored if auth-type is used #852
Comments
I'd like to tackle this if that's ok! |
@nb2838 Sure, but maybe after or instead of #926 (which you also expressed interest in)? So things don’t get blocked. Btw, do you happen to be from @MLH-Fellowship? |
Hey! No, I am not a part of MLH-Fellowship. I am working with a group of friends on tackling small projects. I asked for both so that my friend and I could work on these two issues together. I am sorry, I should have been more clear about it. Would it be ok for us to work on them? |
Sounds good 👍 |
I think I have to change the way the program deals with the reading of the .netrc file. Currently, it does by delegating the task to the requests library. However, the way in which this is done doesn't allow for Digest authentication which is why we would need to do it on our own and change that. When I was doing this I came with an issue/doubt. For security reasons, the python function in the standard library doesn't allow to read the .netrc file if the permissions are not strict enough. I was wondering if httpie should do the same thing and if I should implement this functionality?(Perhaps by ignoring the .netrc file if too many permissions are used) |
This is now addressed in current |
Once
--auth-type
switch is used,.netrc
is not honored. Authentication details must be provided via--auth
switch.Details:
The text was updated successfully, but these errors were encountered: