phildini / django-sandstorm

Django Package for doing authentication with sandstorm.io
MIT License
7 stars 2 forks source link

PyPI

django-sandstorm

Django package for helping integrate a django app with sandstorm.io

To use: pip install django-sandstorm

It is HIGHLY recommended you make a separate sandstorm settings file for your app. Whether or not you do, the following needs to go in your app settings for integration with sandstorm to work:

INSTALLED_APPS += (
    'django_sandstorm',
)

AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.RemoteUserBackend',
)

MIDDLEWARE_CLASSES += (
    'django_sandstorm.middleware.SandstormMiddleware',
)