Skip to content
Snippets Groups Projects
Select Git revision
  • c37d98ae2fca700d9d0b7efd91611e3858165a0c
  • master default protected
2 results

django-authsch

  • Clone with SSH
  • Clone with HTTPS
  • barni2000's avatar
    barni2000 authored
    c37d98ae
    History

    django-authsch

    Django Application for AuthSCH

    Quick start

    1. Add "authsch" to your INSTALLED_APPS setting like this::

      INSTALLED_APPS = [
          ...
          'authsch',
      ]
    2. 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/"
    3. Run python manage.py migrate to create the authsch models.