Skip to content
Myr

Improve documentation of netrc authentication

Before adoption: this commit came in with the history the project adopted, so no landing records it.

The documentation does not make it clear that when the credentials from netrc are used, Requests authenticates with HTTP Basic Auth. I just spent ages trying to figure out why it wasn't working, and it was because although the credentials in the netrc were correct, the server actually required HTTP Digest Auth. Add a section in the authentication documentation to make it clear that HTTP Basic Auth is used.

authored by David Pursehouse · committed by David Pursehouse · parent 3229365 · Browse files · 1 file+11 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+11 added−0 removed

  • other:+11 added−0 removed

1 file+11 added−0 removed

modified:docs/user/authentication.rst+11 added
61 unmodified lines
62For more information on how to OAuth flow works, please see the official `OAuth`_ website.63For examples and documentation on requests-oauthlib, please see the `requests_oauthlib`_ repository on GitHub646566netrc Authentication67--------------------6869If no authentication method is given with the ``auth`` argument, Requests will70attempt to get the authentication credentials for the URL's hostname from the71user's netrc file.7273If credentials for the hostname are found, the request is sent with HTTP Basic74Auth.757677Other Authentication78--------------------7980Requests is designed to allow other forms of authentication to be easily and
34 unmodified lines