Ejemplo
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
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- python
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- python
- Lenguaje
- python
- Gestor de paquetes
- pip
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- python 3.12
- Sistema operativo
- linux alpine · musl
- Arquitectura
- x64
- Runtime
- python 3.12
- Lenguaje
- python
- Gestor de paquetes
- pip
- Ejecución
- 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
- Paquetes
-
httpx 0.28.1
- Entorno
- python
- Creado
- 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.
Archivos
- NOTES.md
- csx.json
- requirements.lock
- requirements.txt
- src/__init__.py
- src/auth.py
- test/__init__.py
- test/contract.py
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9