An Django authentication backend for using the Google App Engine Users and Oauth API for user login/logout.
It only works on Google App Engine and you will also need the Djangoappengine backend for Django-Nonrel.
Different rule : only authorize Django staff and GAE admin users
(and don't use settings ALLOWD_USERS or ALLOWED_DOMAINS)
get the code:
add gaeauth.backends.GoogleAccountBackend to your AUTHENTICATION_BACKENDS and gaeauth to your INSTALLED_APPS
settings.py:
AUTHENTICATION_BACKENDS = ( ... 'gaeauth.backends.GoogleAccountBackend', ) INSTALLED_APPS = ( ... 'gaeauth', )
include gaeauth.urls in your urlconf to login, logout and authenticate
urls.py:
urlpatterns = patterns('', ... (r'^accounts/', include('gaeauth.urls')), )
Now you can use /accounts/login/ to use Google Accounts for login and /accounts/logout/ to log out.
Django-gaeauth provides following named urls: