Hi Bruno, This is greate code, thanks! I would like to do something very similar to authenticate users via Facebook, Google and Twitter. I have several questions:
- Has the code been integrated into web2py? - Is this intended only for Google+, or can normal Google accounts also use the same code? - Would it be easy to integrate twitter too? I am willing to contribute any improvements I need to do in order generalize this code even more, of course. Thanks, Daniel On Monday, January 16, 2012 6:44:16 PM UTC+1, rochacbruno wrote: > > yes we can! the difference is only some keys passed to auth and token url, > also the redirect page and the api caller. > > I think we can create an api proxy to decide which class to use and have > the google/facebook/linkedin etc mappings in a single file. > > I will try and if works I send a patch. > > http://zerp.ly/rochacbruno > Em 16/01/2012 09:25, "Michele Comitini" <[email protected]> > escreveu: > >> Hi Bruno, >> >> Do you think we can integrate all in one oath20 module? >> >> tnx >> >> mic >> >> 2012/1/16 Bruno Rocha <[email protected]>: >> > Hi, >> > >> > I just implemented Google Connect Oauth2 in http://movu.ca/demo >> > >> > If someone interested in the code it is in >> > >> > >> https://github.com/rochacbruno/Movuca/blob/master/modules/oauth20_account_google.py >> > (modified module) >> > >> https://github.com/rochacbruno/Movuca/blob/master/modules/helpers/googleplus.py >> > (modified handler, can go in models or modules) >> > >> https://github.com/rochacbruno/Movuca/blob/master/modules/handlers/person.py#L378 >> > (action handler) >> > >> https://github.com/rochacbruno/Movuca/blob/master/controllers/person.py#L95 >> > (controller) >> > >> > It is based in the facebook version with some changes, but still needs >> > improvements. >> > >> > To use it you have to create API keys in >> > https://code.google.com/apis/console/ and the other things will be >> just like >> > the facebook version. I guess the twitter version can be implemented in >> the >> > same way. >> > >> > ** im my code I am using Movuca config to get the option values, you >> just >> > need to replace them with your API keys. >> > >> > I also found an issue in Auth >> > http://code.google.com/p/web2py/issues/detail?id=616 >> > >> > >> > -- >> > >> > Bruno Rocha >> > [http://rochacbruno.com.br] >> > >> >

