Django Cas

screenshot of Django Cas

K-State's maintained version of django-cas

Overview

The django-cas library is a powerful tool designed specifically for Django applications, allowing developers to seamlessly integrate CAS (Central Authentication Service) functionality. This library is current as of version 1.5.3 and ensures compatibility with Django versions 1.5 and above, as well as with Python versions 2.6, 2.7, and 3.4. This particular fork from K-State not only enhances the original library but also incorporates additional features from KTH's django-cas2, making it a robust choice for developers looking for extended functionalities.

Featuring a combination of essential capabilities and added enhancements, django-cas provides a user-friendly setup process and comprehensive features that cater to both novice and experienced developers. Its integration is straightforward, ensuring that your application can swiftly support authentication using the CAS protocol while benefiting from various customization options.

Features

  • Proxied Hosts: Easily handle the use of proxies by setting the PROXY_DOMAIN in your middleware for straightforward proxy management.

  • CAS Response Callbacks: Implement callback functions to store data from CAS responses, providing flexibility for multiple callbacks throughout your application.

  • CAS Gateway: Enable CAS Gateway functionality in your settings to extend the authentication capabilities, allowing users to access multiple services seamlessly.

  • Custom Forbidden Page: Set a personalized forbidden page by defining CAS_CUSTOM_FORBIDDEN, ensuring a better user experience in case of access restrictions.

  • Require SSL Login: Enhance security by forcing the service URL to use HTTPS through CAS_FORCE_SSL_SERVICE_URL, ensuring secure communications.

  • Automatically Create Users: Streamline user management by automatically creating a stub user record upon the first successful CAS authentication, simplifying the onboarding process.

  • Proxy Tickets: Benefit from Edmund Crewe's proxy ticket patch, which helps to reduce any time delays that may arise from proxy ticket validation, optimizing performance.