]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Clarify custom auth (#2202)
authorNinzero <20299935+Ninzero@users.noreply.github.com>
Wed, 4 May 2022 09:11:53 +0000 (10:11 +0100)
committerGitHub <noreply@github.com>
Wed, 4 May 2022 09:11:53 +0000 (11:11 +0200)
docs/advanced.md

index 9e688ad6a3ca047241051a2d16e1e5692f05c3e3..9d3c388aa13793d2913868c83ebd676c0bb325bc 100644 (file)
@@ -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...