I am needing some help understanding how I can change a camel router from
using API key authentication to OAuth which is required by the web service. 
I currently have the below code working to the web service using API key but
I need help understanding how to make the conversion to OAuth.  I have found
a tutorial for Gauth, but must I use google for this?  

I have also been given the following additional information as to what to
call when using OAuth:
GET:
https://{API sub-domain}/ui/oauth/authorize

POST:
https://{API sub-domain}/ui/oauth/token


Any help is very much appreciated.

<?xml version="1.0" encoding="UTF-8"?>


<beans xmlns="http://www.springframework.org/schema/beans";
           xmlns:context="http://www.springframework.org/schema/context";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:camel="http://camel.apache.org/schema/spring";
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
       http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd";>

  <camelContext xmlns="http://camel.apache.org/schema/spring";>
    <route>
                
        <from uri="timer://foo?fixedRate=true&amp;period=60000"/>
        <setHeader headerName="CamelHttpMethod">
            <constant>POST</constant>
        </setHeader>
        <to
uri="https://api.url.com/api/v3.1/site/query/setup/?apiKey=abcd1234"/>
        <to uri="file:target/messages/testmessages"/>
    </route>
</camelContext>

</beans>



Thank you!



--
View this message in context: 
http://camel.465427.n5.nabble.com/Need-help-with-OAuth-for-Camel-Https-Client-tp5757513.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to