django-sessionprofile is the bridge between any software with customizableauth backends and Django. If you want to use Django for Single-Sign-On, thispackage does the Django heavy lifting.

Installation - Django---------------------

$ pip install django-sessionprofile

Add `sessionprofile` to INSTALLED_APPS, and run `python manage.py migrate`.

Add the sessionprofile middleware (`sessionprofile.middleware.SessionProfileMiddleware`) to your middleware settings - make sure it comes before the `SessionMiddleware`.

Additionally, the session cookie must be available for the third party application,this should not be a problem if it lives on the same domain.

Backend-------Currently one backend is available: `'sessionprofile.backends.DatabaseBackend'`.In the future, alternative backends will be possible, like `'sessionprofile.backends.CachedDatabaseBackend'`.

Installation - third party application--------------------------------------This depends on which backend you decided to use, the example assumes the dbbackend.

When authenticating in the third party application, you should read the sessioncookie (SESSION_COOKIE_NAME), and query the sessionprofile table: