Hi Giuseppe, That is not how the web2py auth framework is designed to be used.
There is some old code here but it should work on stable: https://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg%2Fapplications%2FhelloTwitter https://code.google.com/r/michelecomitini-facebookaccess/source/browse/applications/helloTwitter/models/db.py https://code.google.com/r/michelecomitini-facebookaccess/source/browse/applications/helloTwitter/controllers/default.py I think it is very similar in scope to what you want to achieve. See it running here: http://2-etti.appspot.com/ mic 2013/4/30 Giuseppe Marchetti <[email protected]> > hi Michele, > > thanx for ur time to help me.. but it doesnt work.. :( > > my code (a part from default.py ) : > > from rauth import OAuth1Service > twitter = OAuth1Service( > name='twitter', > consumer_key='sgpDtqbVKlYeV8zXmaAd6A', > consumer_secret='xMqlrwCcOsQoUlOwdsxDId80BetRE3oP1D6qdWING7A', > request_token_url='https://api.twitter.com/oauth/request_token > ', > access_token_url='https://api.twitter.com/oauth/access_token', > authorize_url='https://api.twitter.com/oauth/authorize', > base_url='https://api.twitter.com/1/') > > request_token, request_token_secret = twitter.get_request_token() > authorize_url = twitter.get_authorize_url(request_token) > # redirect the url and get back > session = twitter.get_auth_session(equest_token, > request_token_secret, > method='POST', > data={'oauth_verifier': oauth_verifier}) > > params = {} > k = session.get('account/verify_credentials.json', params = params) > > name = k.json()[u'name'] > t_id = k.json()[u'id'] > pic = k.json()[u'profile_image_url'] > > pic = XML(resim) > > if db.auth_user.update_or_insert(t_id = t_id): > print "New!" > > > here is my code.. and i mean if db.auth_user.update_or_insert(t_id = > t_id): it should be login with name.. > pls look at the web site: http://www.plovist.com/pins/ there is a > button for twitter and u r going to login.. thats all.. > > -- > > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

