Croway commented on code in PR #23866:
URL: https://github.com/apache/camel/pull/23866#discussion_r3379227013


##########
core/camel-support/src/main/java/org/apache/camel/support/OAuthHelper.java:
##########
@@ -47,4 +52,55 @@ public static String resolveOAuthToken(CamelContext context, 
String profileName)
                 "camel-oauth");
         return factory.resolveToken(context, profileName);
     }
+
+    /**
+     * Resolves the OAuth token validation factory.
+     *
+     * @param  context the CamelContext
+     * @return         the token validation factory
+     * @since          4.21
+     */
+    public static OAuthTokenValidationFactory 
resolveOAuthTokenValidationFactory(CamelContext context) {

Review Comment:
   Is the BoostrapService the right approach here? I was thinking at a 
potential Camel Spring Boot implementation of the SPI, and I think it would be 
nice to check the Camel Registry first, in particular this is handy when 
implementing the SPI on different runtimes that uses DI (Spring Boot or 
Quarkus). 
[PlatformHttpComponent.getOrCreateEngine()](https://github.com/apache/camel/blob/fdcf8f43726bcb5f298d9ed00087330f5b0d0097/components/camel-platform-http/src/main/java/org/apache/camel/component/platform/http/PlatformHttpComponent.java#L336-L344)
 does something similar



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