Try use a query in url defining the type of auth , ex: ?auth=facebook or 
?auth=gmail or ?auth=...

and in your models verify this argument :

if request.vars['auth'] == 'facebook':
//auth.settings.login_form=facebookAccount()
elif request.vars['auth'] == ''google":
// use your googleAccount()

Em segunda-feira, 21 de novembro de 2016 12:42:53 UTC-3, Tommaso Bonato 
escreveu:
>
> Hello, I am building an application using web2py and I am not sure how I 
> can enable multiple authentication methods at the same time. For example I 
> would like to use both Google and Facebook OAuth and also allow the user to 
> sign up using the default web2py authentication system. Right now I have 
> implemented the Google OAuth and it works but I am not able to add other 
> methods.
>
> I think the main problem is this line of code where i define the 
> authentication "system" for web2py. I tried reading the book but couldn't 
> really find something helpful.
>
> auth.settings.login_form=googleAccount()
>
> Il gruppo consente fino a 5 tag separati da virgola per argomento
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to