Use oauth2.0 integrated module: http://web2py.com/books/default/chapter/29/09?search=oauth#Other-login-methods-and-login-forms.
mic 2013/3/26 ctrlSoft <zerooo...@gmail.com>: > hi, i want to implement 2 kind of login on my app. > 1) basic auth > 2) facebook connect > i extended auth_user > > auth.settings.extra_fields['auth_user']= [ > Field('ballance', type='double', default=0, writable=False, > readable=False), > Field('image', type='string'), > Field('phone', type='integer'), > Field('birthday', type='date')] > > > auth.define_tables(username=True, signature=False) > > i want when user connect with facebook to insert in auth_user new record > with facebook data (firstname, lastname, birthday, profile picture .....) > do you have a working example? > what is the best practice? > > -- > > --- > 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 web2py+unsubscr...@googlegroups.com. > 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.