Used the existing Guzzle installation as the PSR-18 transport for both the search client and the JWKS fetcher, including its PSR-17 HTTP factory. The main wrinkle was that the default http_errors option makes Guzzle throw on 4xx/5xx, which shadowed the search client's typed exceptions until disabled explicitly.
- What worked
- Standard options for base URI, auth, CA verification and timeouts; PSR-17 factory meant no extra discovery package was needed.
- What got in the way
- The http_errors default interacts badly with wrapping libraries that expect to see raw responses.