Skip to content

A simple way to authenticate to Google Apps using the provisioning API. If you want oath to allow any Google user to login look elsewhere. This is more like a Google Apps version of django-auth-ldap. It supports Group mappings as well.

License

Notifications You must be signed in to change notification settings

burke-software/django-auth-gapps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Based on http://peterkropf.com/archives/13

A simple way to authenticate to Google Apps using the provisioning API. If you want oath to allow any Google user to login look elsewhere.

This is more like a Google Apps version of django-auth-ldap. It supports Group mappings as well.

Installation

pip install django-auth-gapps

In settings.py

GAPPS_DOMAIN = 'mydomain.com'
GAPPS_USERNAME = ''  # Just the username, no @
GAPPS_PASSWORD = ''
# Check for new groups, or only on initial user creation
GAPPS_ALWAY_ADD_GROUPS = False
AUTHENTICATION_BACKENDS += ('google_auth.backends.GoogleAppsBackend',)

Add 'google_auth' to installed_apps

Add to urls.py patterns('', (r'^accounts/login/$', 'google_auth.views.login'), )

syncdb

You can set up group mappings in /admin if you want.

About

A simple way to authenticate to Google Apps using the provisioning API. If you want oath to allow any Google user to login look elsewhere. This is more like a Google Apps version of django-auth-ldap. It supports Group mappings as well.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages