class documentation
Undocumented
Method | __init__ |
Undocumented |
Method | auth |
Execute the authentication flow. |
Method | _build |
Undocumented |
Method | _get |
Undocumented |
Method | _get |
Undocumented |
Method | _parse |
Returns a challenge from a Digest WWW-Authenticate header. These take the form of: `Digest realm="realm@host.com",qop="auth,auth-int",nonce="abc",opaque="xyz"` |
Method | _resolve |
Undocumented |
Constant | _ALGORITHM |
Undocumented |
Instance Variable | _last |
Undocumented |
Instance Variable | _nonce |
Undocumented |
Instance Variable | _password |
Undocumented |
Instance Variable | _username |
Undocumented |
Inherited from Auth
:
Async Method | async |
Execute the authentication flow asynchronously. |
Method | sync |
Execute the authentication flow synchronously. |
Class Variable | requires |
Undocumented |
Class Variable | requires |
Undocumented |
Undocumented
Parameters | |
username:typing.Union[ | Undocumented |
password:typing.Union[ | Undocumented |
overrides
httpx.Auth.auth_flow
Execute the authentication flow. To dispatch a request, `yield` it: ``` yield request ``` The client will `.send()` the response back into the flow generator. You can access it like so: ``` response = yield request ``` A `return` (or reaching the end of the generator) will result in the client returning the last response obtained from the server. You can dispatch as many requests as is necessary.
Parameters | |
request:Request | Undocumented |
Returns | |
typing.Generator[ | Undocumented |
Undocumented
Parameters | |
qop:typing.Optional[ | Undocumented |
request:Request | Undocumented |
Returns | |
typing.Optional[ | Undocumented |