camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AnitaJ <javasp...@gmail.com>
Subject Re: Need help with Camel OAuth
Date Mon, 10 Oct 2011 18:05:36 GMT
Hi Brian,

The route is in the TutorialRouteBuilder class in this link: 
http://camel.apache.org/tutorial-oauth.html Camel OAuth tutorial 

<snip>

// Callback URL for sending back an authorized access token.
String encodedCallback =
URLEncoder.encode(String.format("https://%s.appspot.com/camel/handler",
application), "UTF-8");

// Google should issue an access token that is scoped to calendar feeds.
String encodedScope =
URLEncoder.encode("http://www.google.com/calendar/feeds/", "UTF-8");

// Route for obtaining an unauthorized request token from Google Accounts.
The
// response redirects the browser to an authorization page provided by
Google.
from("ghttp:///authorize")
            .to("gauth:authorize?callback=" + encodedCallback + "&scope=" +
encodedScope);

</snip>



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

Mime
View raw message