gnodet-bot commented on PR #30707:
URL: https://github.com/apache/camel/pull/30707#issuecomment-7230092964

   <!-- hermes-bot-review-response -->
   
   Thanks for the detailed review. All four points have been addressed in the 
latest push:
   
   **1. OpenAI direct-client token refresh test** — Added 
`OpenAIClientOAuthTokenRefreshTest`: uses a local HTTP server at 
`/v1/chat/completions` and a `StubOAuthClientAuthenticationFactory`, sends two 
chat-completion requests with an `oauthProfile` route, switches the stub token 
between them, and asserts the Authorization header changed. This directly 
exercises the `BearerTokenCredential.create(Supplier)` path in `createClient()`.
   
   **2. SSE transport test** — Added `sseTransportSendsTokenOnEveryRequest()` 
to `SpringAiChatMcpOAuthTokenRefreshTest`: replaces the single 
`RecordingTransport` with a `DualTransport` that serves both `streamableHttp` 
(POST `/mcp`) and SSE (GET `/sse` + POST `/message`). The new test initializes 
a manager with `transportType=sse` and asserts all recorded Authorization 
headers carry the expected token. This exercises 
`HttpClientSseClientTransport.Builder.addHttpRequestCustomizer` directly.
   
   **3. camel-ibm-watsonx-ai / camel-ibm-watsonx-data** — Both components also 
resolve the token eagerly in `doStart()` via `OAuthHelper.resolveOAuthToken()`. 
Added them to the "Remaining components (follow-up)" section of the PR 
description alongside camel-docling and camel-huggingface.
   
   **4. Try/catch deduplication (nit)** — Noted. Left as-is for now since the 
contexts differ (MCP server name vs. profile name in the message) and a 
cross-module helper would live in `camel-support`, which feels heavier than the 
nit warrants. Happy to add it if you feel strongly.
   
   _Claude Sonnet 4.6 on behalf of Guillaume Nodet (gnodet)_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to