Skip to content

An Django authentication backend for using the Google App Engine Users and Oauth API for user login/logout.

License

Notifications You must be signed in to change notification settings

pv-g/django-gaeauth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Gaeauth

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.

Fork by Philippe Vignau

Different rule : only authorize Django staff and GAE admin users

(and don't use settings ALLOWD_USERS or ALLOWED_DOMAINS)

Installation

  • get the code:

    git clone https://github.com/Philoozushi/django-gaeauth.git

  • 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.

Urls

Django-gaeauth provides following named urls:

google_login

displays the Google login form

google_logout

logout the user using the Google App Engine Users API

google_authenticate

authenticates the user using the Google App Engine Users API

About

An Django authentication backend for using the Google App Engine Users and Oauth API for user login/logout.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.5%
  • Shell 5.5%