Django Application for AuthSCH
-
Add "authsch" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ... 'social_django', 'authsch', ]
-
settings.py
SOCIAL_AUTH_URL_NAMESPACE = 'social' AUTHENTICATION_BACKENDS = [ 'authsch.authentication.AuthSCHOAuth2', 'django.contrib.auth.backends.ModelBackend', ] SOCIAL_AUTH_AUTHSCH_KEY = "key" SOCIAL_AUTH_AUTHSCH_SECRET = "secret" SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/' LOGIN_URL = "login/authsch/"
-
Run
python manage.py migrate
to create the authsch models.