fastmcp/tests
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
..
cli Fix: URL-encode server name in Cursor deeplinks (#2369) 2025-11-04 11:26:57 -05:00
client Allow OAuth instance to use the same httpx factory as the Transport (#2324) 2025-11-04 12:14:28 -05:00
contrib feat: Add title, annotations and meta to mixin decorators 2025-10-10 14:23:02 +05:30
deprecated feat: introduce fastmcp.json configuration system (#1517) 2025-08-19 16:06:04 -04:00
experimental Bump ty to ==0.0.1a25 (#2350) 2025-11-02 20:02:45 -05:00
integration_tests Derive jwt_signing_key from Client Secret, default to Encrypted Disk Store (#2223) 2025-10-24 19:08:58 -04:00
prompts Enable more type checking rules (#1775) 2025-09-07 11:11:44 -04:00
resources Fix query-only resource templates not matching URIs without query strings (#2323) 2025-11-01 11:27:37 -04:00
server Fix OAuth metadata endpoint URLs when base_url differs from issuer_url (#2353) 2025-11-04 10:38:41 -05:00
tools Add meta support to ToolResult (#2283) 2025-11-02 16:46:52 -05:00
utilities Bump ty to ==0.0.1a25 (#2350) 2025-11-02 20:02:45 -05:00
__init__.py Update type handling for resources 2024-11-29 19:42:46 -05:00
conftest.py Fix Windows test timeouts from SQLite locking (#2368) 2025-11-04 10:58:49 -05:00
test_examples.py Cleanup content conversion 2025-09-06 17:32:33 -05:00
test_mcp_config.py Bump ty to ==0.0.1a25 (#2350) 2025-11-02 20:02:45 -05:00