Contributions welcome!
We do a Pull Request contributions workflow on GitHub. New users are always welcome!
Features
- Supports CAS_ versions 1.0, 2.0 and 3.0.
- Support Single Sign Out
- Supports Token auth schemes
- Can fetch Proxy Granting Ticket
- Supports Django 2.0, 2.1, 2.2 and 3.0
- Supports using a User custom model
- Supports Python 3.5+
Installation
pip install django-cas-ng
Configuration
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_cas_ng', # Add this line
...
]
MIDDLEWARE = [
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django_cas_ng.middleware.CASMiddleware', # Add this line
...
]
AUTHENTICATION_BACKENDS = [
'django.contrib.auth.backends.ModelBackend',
'django_cas_ng.backends.CASBackend', # Add this line
]
CAS_SERVER_URL = 'https://your-cas-server-url/'
CAS_VERSION = '3'
See example integration and detail document about Configuration