Hello Michele/Massimo, Has this fix been taken in? Is it available in any web2py build now?
On Aug 22, 4:10 am, Michele Comitini <michele.comit...@gmail.com> wrote: > Massimo here is the full patch with modifications for > oauth*_account.py login_methods > > tnx! > > 2010/8/22 Michele Comitini <michele.comit...@gmail.com>: > > > > > > > > > in tools.py line 1436: > > next = URL(r=request) + '?_next=' + next > > should be like this? > > next = self.url('user', args='login') + '?_next=' + next > > > 2010/8/22 Michele Comitini <michele.comit...@gmail.com>: > >> Ok found a way to fix the problem with redirection (_next parameter). > >> Massimo pls look if the following is correct! > > >> diff -r 9261ce4eda7f gluon/tools.py > >> --- a/gluon/tools.py Thu Aug 19 04:13:54 2010 +0200 > >> +++ b/gluon/tools.py Sun Aug 22 00:08:25 2010 +0200 > >> @@ -982,7 +983,7 @@ > >> request = self.environment.request > >> args = request.args > >> if not args: > >> - redirect(self.url(args='login')) > >> + redirect(self.url(args='login', vars=request.vars)) > >> elif args[0] in self.settings.actions_disabled: > >> raise HTTP(404) > >> if args[0] == 'login': > > >> 2010/8/20 Michele Comitini <michele.comit...@gmail.com>: > >>> Hello Narendran, > > >>> Do not use that it is old.. > > >>> now facebook is supported inside web2py distribution with > >>> oauth20_account.py > >>> you can find an example app here: > >>>http://code.google.com/r/michelecomitini-facebookaccess/source/browse... > > >>> for a simple example usage of graph api look here: > >>>http://code.google.com/r/michelecomitini-facebookaccess/source/browse... > >>>http://code.google.com/r/michelecomitini-facebookaccess/source/browse... > >>>http://code.google.com/r/michelecomitini-facebookaccess/source/browse... > > >>> for the redirection after login I am investigating... > > >>> mic > > >>> 2010/8/20 Narendran <gunanar...@gmail.com>: > >>>> Hello all, > >>>> I picked the Facebook oauth submitted by mcm from > >>>>https://code.google.com/r/michelecomitini-facebookaccess/source/brows... > >>>> (referred in this thread: > >>>>http://groups.google.com/group/web2py/browse_thread/thread/be441047bf...) > > >>>> I am facing one isse: > >>>> 1. I've placed require_login decoration on a method say a(). After the > >>>> authentication is complete, the page always gets redirected to default/ > >>>> index, whereas the ideal behaviour would be to go to a(). It works as > >>>> intended if I use default auth instead of Facebook auth. > > >>>> Also, is there any plugin/package that would provide full-fledged > >>>> support for using Facebook Graph API with web2py? > > >>>> -- > >>>> Thanks > >>>> Narendran > > > > oauth_action_flow_fix.diff > 17KViewDownload