Auth Capture Proxy (authcaptureproxy) is a Python library and tool designed to create a proxy that captures authentication information from web pages. This is particularly useful for scenarios requiring the capture of OAuth login details without direct access to a third-party OAuth provider. The current version is 1.3.7, and the project maintains an active release cadence with frequent bug fixes and minor improvements.
pip install authcaptureproxyVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to set up and run the `AuthCaptureProxy` programmatically using `asyncio`. It starts a proxy server on port 5000, forwarding requests to `httpbin.org`, and will capture authentication-related information. The proxy runs until manually interrupted.
Upgrade your Python environment to 3.10 or a newer version.
Upgrade to version 1.3.5 or newer to benefit from fixes for header and JSON parsing issues.
Ensure `base_url` is always a valid HTTP/HTTPS URL. If you need to proxy to local files, consider alternative approaches or test carefully.
Test your proxy setup thoroughly after upgrading to 1.3.3+ if you rely on custom SSL configurations. Review the library's SSL handling for any conflicts.