twitter-oauth example

51 views
Skip to first unread message

Ali Ozan Çil

unread,
Dec 25, 2010, 10:57:47 AM12/25/10
to play-fr...@googlegroups.com
Hi All,
I am currently playing with twitter-oauth example. I have one question to people who has experience on Twitter OAuth or OAuth.
In this example, everytime user gets authorization from twitter, it shows the screen below to ask user to grant access for application.

Is there any way to disable everytime asking to user after getting authorization first time ? Maybe storing access token etc.


twitter.PNG

Ali Ozan Çil
http://www.aliozancil.com

twitter.PNG

Erwan Loisant

unread,
Dec 27, 2010, 5:41:51 AM12/27/10
to play-fr...@googlegroups.com
Yes, you need to store the token pair as a per-user basis. Only request authorization again if Twitter sends you a "not authorized" answer. That may happen when your token expires or when the user explicitly removes authorization to your app.

Other thing: ErwanTest is just one test application, I could reset the secret at any time or delete it. This is included so you can try the sample application without having to do any configuration, but you NEED to register your own application if you want to connect to Twitter.


--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.



--
Erwan Loisant
twitter.PNG
Reply all
Reply to author
Forward
0 new messages