A Django app for AuthSCH.
Project description
django-social-authsch
=====
Django Application for AuthSCH
Quick start
-----------
1. Add "authsch" to your INSTALLED_APPS setting like this::
````python
INSTALLED_APPS = [
...
'social_django',
'authsch',
]
````
2. settings.py
````python
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.
=====
Django Application for AuthSCH
Quick start
-----------
1. Add "authsch" to your INSTALLED_APPS setting like this::
````python
INSTALLED_APPS = [
...
'social_django',
'authsch',
]
````
2. settings.py
````python
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-social-authsch-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32fce8a3afd0c90a2b53e2f5d6fbf173b03c2799d316e37b6e383849a996a529 |
|
MD5 | 2be2ae79781f20f5877e9d2aaae553ae |
|
BLAKE2b-256 | 00e2fd9c0651ca964d6d3b58fc89213d72ec6c8567a41cfdcbec1877ff0ddc58 |