public class TutorialTokenProcessor extends Object implements org.apache.camel.Processor
TutorialController
for accessing a user's calendar via the Google Calendar API. The cookies are valid for one
hour. Finally, it generates an HTTP 302 response that redirects the user to the application's
main location (/oauth/calendar).
In production systems it is not recommended to store access tokens in cookies. The recommended approach is to store them in a database. The demo application is only doing that to keep the example as simple as possible. However, an attacker could not use an access token alone to get access to a user's calendar data because the application's consumer secret is necessary for that as well. The consumer secret never leaves the demo application.
Constructor and Description |
---|
TutorialTokenProcessor() |
Apache Camel