Working on a similar project earlier this week and I would receive errors unless I changed
from gluon.contrib.login_methods.gae_google_login import GaeGoogleAccount to from gluon.contrib.login_methods.gae_google_account import GaeGoogleAccount I am running the latest stable version from the site download - 1.66.2 Here is the error prior to the change. Traceback (most recent call last): File "gluon/restricted.py", line 178, in restricted File "C:/web2py/applications/hcoleavetime/models/db.py", line 30, in <module> ImportError: No module named gae_google_login Once I change this to gae_google_account, then I get a different error, but only from local version of web2py. Running on GAE - (local or remote) seemed to auth against Google Apps for your Domain just fine, however, I ran into other issues and did not pursue beyond this. -Eric On Sep 17, 3:23 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > 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 -~----------~----~----~----~------~----~------~--~---