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 and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page