ramu11 commented on code in PR #29592:
URL: https://github.com/apache/camel/pull/29592#discussion_r4538173160


##########
components/camel-ai/camel-mcp-server/src/main/java/org/apache/camel/component/mcp/server/vertx/VertxMcpStreamableServerTransportProvider.java:
##########
@@ -227,6 +280,121 @@ private void checkOrigin(RoutingContext ctx) {
         ctx.next();
     }
 
+    /**
+     * Validates a Bearer token before the MCP body handler or MCP dispatch 
runs. Validation executes on a worker thread
+     * because JWKS and introspection may require outbound HTTP calls.
+     */
+    private void checkOAuth(RoutingContext ctx) {
+        List<String> authorizations = 
List.copyOf(ctx.request().headers().getAll("Authorization"));
+        ctx.request().pause();

Review Comment:
   Resolved



-- 
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