Skip to main content

A Django app implementing the CAS Protocol 3.0 Specification

Project description

=====
CAS Server
=====

CAS Server is a Django app implementing the `CAS Protocol 3.0 Specification
<https://jasig.github.io/cas/development/protocol/CAS-Protocol-Specification.html>`_.

By defaut, the authentication process use django internal users but you can easily
use any sources (see auth classes in the auth.py file)

The differents parametters you can use in settings.py to tweak the application
are listed in default_settings.py

The defaut login/logout template use `django-bootstrap3 <https://github.com/dyve/django-bootstrap3>`_
but you can use your own templates using the CAS_LOGIN_TEMPLATE,
CAS_LOGGED_TEMPLATE, CAS_WARN_TEMPLATE and CAS_LOGOUT_TEMPLATEsetting variables.

Quick start
-----------

1. Add "cas_server" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = (
...
'cas_server',
)

For internatinalization support, add "django.middleware.locale.LocaleMiddleware"
to your MIDDLEWARE_CLASSES setting like this::

MIDDLEWARE_CLASSES = (
...
'django.middleware.locale.LocaleMiddleware',
...
)

2. Include the polls URLconf in your project urls.py like this::

url(r'^cas/', include('cas_server.urls', namespace="cas_server")),

3. Run `python manage.py migrate` to create the cas_server models.

4. Start the development server and visit http://127.0.0.1:8000/admin/
to add a first service allowed to authenticate user agains the CAS
(you'll need the Admin app enabled).

5. Visit http://127.0.0.1:8000/cas/ to login with your django users.

Project details


Download files

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

Source Distribution

django-cas-server-0.2.1.tar.gz (44.3 kB view details)

Uploaded Source

File details

Details for the file django-cas-server-0.2.1.tar.gz.

File metadata

File hashes

Hashes for django-cas-server-0.2.1.tar.gz
Algorithm Hash digest
SHA256 009a090fda064d562e83f07fa8669c44d4ab03bd61dbb0f179f9834db66ae4c3
MD5 719042a1402953528f4b1001d99dcb59
BLAKE2b-256 eb0843bd4c33679c8f7358a31c7e4419e9f486e5ad57fbda86efaa88a9e1782b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page