class DigestAuth(Auth):
Undocumented
Method | __init__ |
Undocumented |
Method | auth_flow |
Execute the authentication flow. |
Method | _build_auth_header |
Undocumented |
Method | _get_client_nonce |
Undocumented |
Method | _get_header_value |
Undocumented |
Method | _parse_challenge |
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_qop |
Undocumented |
Constant | _ALGORITHM_TO_HASH_FUNCTION |
Undocumented |
Instance Variable | _password |
Undocumented |
Instance Variable | _username |
Undocumented |
Inherited from Auth
:
Async Method | async_auth_flow |
Execute the authentication flow asynchronously. |
Method | sync_auth_flow |
Execute the authentication flow synchronously. |
Class Variable | requires_request_body |
Undocumented |
Class Variable | requires_response_body |
Undocumented |
Undocumented
Parameters | |
username:typing.Union[ | Undocumented |
password:typing.Union[ | Undocumented |
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 | |
request:Request | Undocumented |
challenge:_DigestAuthChallenge | Undocumented |
Returns | |
str | Undocumented |
Undocumented
Parameters | |
nonce_count:int | Undocumented |
nonce:bytes | Undocumented |
Returns | |
bytes | Undocumented |
Undocumented
Parameters | |
header_fields:typing.Dict[ | Undocumented |
Returns | |
str | Undocumented |
Undocumented
Parameters | |
qop:typing.Optional[ | Undocumented |
request:Request | Undocumented |
Returns | |
typing.Optional[ | Undocumented |