From: Ninzero <20299935+Ninzero@users.noreply.github.com> Date: Wed, 4 May 2022 09:11:53 +0000 (+0100) Subject: Clarify custom auth (#2202) X-Git-Tag: 0.23.0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b26412868f39583705f1f08d5858212d72baf3f;p=thirdparty%2Fhttpx.git Clarify custom auth (#2202) --- diff --git a/docs/advanced.md b/docs/advanced.md index 9e688ad6..9d3c388a 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -748,7 +748,7 @@ When issuing requests or instantiating a client, the `auth` argument can be used * A two-tuple of `username`/`password`, to be used with basic authentication. * An instance of `httpx.BasicAuth()` or `httpx.DigestAuth()`. * A callable, accepting a request and returning an authenticated request instance. -* A subclass of `httpx.Auth`. +* An instance of subclasses of `httpx.Auth`. The most involved of these is the last, which allows you to create authentication flows involving one or more requests. A subclass of `httpx.Auth` should implement `def auth_flow(request)`, and yield any requests that need to be made...