Skip to content

DevTeamSCH/django-social-authsch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

django-authsch

Django Application for AuthSCH

Quick start

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

    INSTALLED_APPS = [
        ...
        'social_django',
        '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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages