Skip to content
Myr

Clarify custom auth (#2202)

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

authored by Ninzero · committed by GitHub · parent e9b0c85 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/advanced.md+1 added-1 removed
746 unmodified lines
747748* A two-tuple of `username`/`password`, to be used with basic authentication.749* An instance of `httpx.BasicAuth()` or `httpx.DigestAuth()`.750* A callable, accepting a request and returning an authenticated request instance.751* A subclass of `httpx.Auth`.751* An instance of subclasses of `httpx.Auth`.752753The 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...754755```python
422 unmodified lines