Skip to main content

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.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-social-authsch-0.1.tar.gz (2.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page