This project servers a minimal local CAS server backed by Django. Users are
controlled via the standard Django User model.
- Download this git repository.
- Create a new virtualenv:
python3 -m venv <your virtualenv> - Activate your virtualenv:
source /path/to/your/virtualenv/bin/activate - Install the requirements:
python -m pip install -r requirements.txt - Setup the SQLite database:
python manage.py migrate - Create a user:
python manage.py createsuperuser1. Use whatever you want as the username and password. 2. Leave the other fields blank. - Use the built-in Django test server to serve the CAS endpoints on port 8000:
python manage.py runserver
You should now have a Django project configured to serve CAS authentication with a single user created.
Follow the steps above, but after installing the requirements (step 4):
- Create a new Django project:
django-admin startproject cas_test . - Follow the install directions for
django-mama-cas