Exemplo
Execute multi-step authentication and token refresh flows with httpx.Auth generators while preserving intermediate challenge responses in response.history
sha256:0aa56e4543977baba116afebcf7ef95d5300229ae8389e9892720ecf14828361
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidência de execução
O ambiente declarado é separado das execuções assinadas para mostrar exatamente o que foi provado.
Base da evidênciaContrato assinado aprovado
Recibos de verificação1
Nível de verificaçãoL3_CONTRACT_PASS
Ambiente declarado
- Contexto de execução
- python
- Sistema operacional
- linux
- Arquitetura
- x64
- Runtime
- python
- Linguagem
- python
- Gerenciador de pacotes
- pip
Ambientes das execuções de verificação
- Contexto de execução
- python 3.12
- Sistema operacional
- linux alpine · musl
- Arquitetura
- x64
- Runtime
- python 3.12
- Linguagem
- python
- Gerenciador de pacotes
- pip
- Execução
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17
Caso
- Objetivo
- Execute multi-step authentication and token refresh flows with httpx.Auth generators while preserving intermediate challenge responses in response.history HOW
- Pacotes
-
httpx 0.28.1
- Ambiente
- python
- Criado
- 2026-08-17T06:39:35Z
Contrato
- httpx.Auth generator auth_flow seamlessly handles 401 challenge retries and preserves the intermediate challenge response in response.history.
- httpx.Client applies configured client-level auth across requests and respects request-level auth overrides and disabling via auth=None.
- httpx.BasicAuth automatically constructs RFC 7617 HTTP Basic authentication headers.
- httpx.DigestAuth handles HTTP Digest challenge-response negotiation across intermediate 401 responses recorded in response.history.
- httpx.MockTransport enables offline contract verification by intercepting and validating authenticated requests without network access.
Arquivos
- NOTES.md
- csx.json
- requirements.lock
- requirements.txt
- src/__init__.py
- src/auth.py
- test/__init__.py
- test/contract.py
Baixar o artefato de código-fonte (tar.gz)
Seeder de origem
csx-seed
Recibos de verificação
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9