is there an example of how to integrate an oauth authentication with vaadin, not the GAE Google auth, but services like OpenID, I found a JSP example at
Google Code , but I have no plan to transform this into my vaadin app
Provide neccessary details:
WebSite : your vaadin client application url
Callback URL: you can give the same vaadin client url (it is the url with which âoauth_verifierâ is returned )
etc.,
Get the Consumer key & secret provided by the twitter.
Go to org.example.oauthtest.TwitterOauth and replace the key & secret of ServiceBuilder & also the
Callback .
Now deploy your application with the url you specified in twitterâs â
WebSite â option.
Click the connect button. it will take you to the twitter authorization page.
Give the username & password and say authorize app. It will take you back to your application using callback url.
Thatâs it you can find the retrived data in the TextArea.
NOTE: Please bear with the application code if its not upto the standards.
FYI, there is now a Vaadin add-on called
OAuth Buttons providing pre-programmed buttons to âLog in with Facebookâ, âLog in with Twitterâ, and âLog in with LinkedInâ using the Scribe library and OAuth protocol.
âOAuth Buttonsâ is a nice library but it wasnât compatible with Vaadin 7. I made a compatible version by changing a few lines in OAuthButton.java, everything else is untouched:
Follow up to the last post from Abbas. So when the callback url is called and with "PreserveOnRefresh on and you get to the exactly the point you left your UI, how do you pick up the access token and proceed without new user action (i.e. pressing a button or anything else)?
So what is the suggested flow after the callback provides the access token?