needle icon indicating copy to clipboard operation
needle copied to clipboard

Use .netrc for preconfigured authentication

Open raspy opened this issue 4 years ago • 1 comments

Frequently authentication needs to be configured outside the code. Quite standard approach in Unix world is to store those credentials in ~/.netrc and this is widely supported in HTTP clients, i.e. wget, curl or python-requests. Please include support for auto-reading credentials from ~/.netrc as well (I believe there is an npm module for parsing that).

raspy avatar Oct 09 '20 11:10 raspy

I'd be happy to merge this if you submit a PR, as long as reading/parsing that file is optional (eg if { use_netrc: true } is present).

tomas avatar Oct 09 '20 12:10 tomas