fastmcp/tests/client/transports
Giovanna Zanardini a6ddde27df
Allow OAuth instance to use the same httpx factory as the Transport (#2324)
* Allow OAuth instance to use the same httpx factory as the Transport

* Fix test

* Update SSL verification mode assertion in tests

* This is actually not needed

* Creating a Client instance is not needed for this test

* Fix test

* Apply httpx_client_factory fix to SSETransport

Extends the OAuth httpx_client_factory changes to SSETransport.
SSETransport had the same issues as StreamableHttpTransport where it
wasn't passing the custom httpx client factory to OAuth, causing
certificate verification settings to be ignored during OAuth flows.

Changes:
- Set httpx_client_factory before calling _set_auth()
- Pass httpx_client_factory to OAuth constructor
- Add test for SSETransport OAuth client factory propagation

---------

Co-authored-by: Jeremiah Lowin <153965+jlowin@users.noreply.github.com>
2025-11-04 12:14:28 -05:00
..
__init__.py Add UV Transport (#1270) 2025-07-28 15:41:36 -04:00
test_transports.py Allow OAuth instance to use the same httpx factory as the Transport (#2324) 2025-11-04 12:14:28 -05:00
test_uv_transport.py Fix path resolution in install commands (#1951) 2025-09-29 20:04:12 -04:00