in db.py

after
        auth=Auth(....)
add

        from gluon.contrib.login_methods.gae_google_login import
GaeGoogleAccount
        auth.settings.login_form=GaeGoogleAccount()



On Sep 16, 11:52 pm, Graham Charles <grahampchar...@gmail.com> wrote:
> On Sep 1, 10:36 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > We currently provide out of the box authentication using google(when
> > running on GAE), gmail, twitter, ldap, basic auth.
>
> I'm curious about how to implement authentication using Google, and
> specifically Google Apps for Domains. When I deploy web2py to appspot,
> authentication still happens using the internal Register/Login model.
> I can manually force a Google login:
>
>     from google.appengine.api import users
>     user = users.get_current_user()
>     if user:
>         nickname = user.nickname()
>     else:
>         redirect(users.create_login_url(URL(r=request, f='index')))
>
> But that doesn't seem like "out of the box authentication." Is there a
> GAE example that uses a Google login for functions decorated by
> @auth.requires_login() ?
>
> Thanks,
>
> g.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to