where will the cookie reside? it's not the users side since all oauth communication is between me and twitter. I could try to keep the secret or both(secret and token) in the session , but is there a different session for each user. is a django session defined for each connection to the application or might a session change also if I redirect the user to another page? well I guess my question is whether I have to save the information somehow as my part of my responsibility and python-twitter-oauth is not designed to give a solution to that situation?
On Tue, Jan 5, 2010 at 6:05 PM, Bill Freeman <ke1g...@gmail.com> wrote: > On Tue, Jan 5, 2010 at 8:29 AM, hackndoes <hirsh....@gmail.com> wrote: > > I am using the oauth-python-twitter from google code to establish > > oauth authentication with twitter from my django app. > > I don't use django oauth application as part of my solution cause i > > have no need, i only need a thin use of oauth to make a user of my app > > a follower of my twitter account. > > it's one time action per user request, create and forget. > > my problem is that i get a request token using the getRequestToken > > method > > then use it to redirect user to the authorization url. > > all this is done from one view. > > when service provider redirects user to my callback url (which is a > > new view) i am out of context already, and it only provides the > > oauth_token and not the oauth_token_secret. i need both to be able to > > ask for access token. > > i can save the secret locally but it feels it's not the appropriate > > way to use the oauth module, > > not to mention that creating an oauth.OAuthToken manually when using > > the oauth-python-twitter module is kinda crooked. (a mix and match) > > > > any suggestions? > > i really want an advice on the correct way to use it between requests, > > some good practices. > > I assume that you get to specify the call back url, so you could encode > the secret there, but that doesn't feel very secret. > > You could set a cookie, which ties the secret to the user's browser > session, assuming that's the model you're looking for. > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > -- regards, Dan Hirsch Linked-In: http://www.linkedin.com/in/danhirsch1 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.