unistra / django-cas Goto Github PK
View Code? Open in Web Editor NEWThis project forked from kstateome/django-cas
K-State's maintained version of django-cas
This project forked from kstateome/django-cas
K-State's maintained version of django-cas
File : django_cas/views.py in _service_url L.51
Problem : can only concatenate list (not "generator") to list
Fixed by :
Previously, the CAS_ADMIN_PREFIX
should be used to enable / disable the cas authentication for the admin application. It is not working and cas authentication can't be disabled.
This setting must be a string representing the base path to the admin interface configured in url patterns.
CAS_ADMIN_PREFIX
should be deprecated in favor of a new parameter called CAS_ADMIN_AUTH
. This new parameter must be a boolean and is true by default. That won't break previous configuration in Django projects. When the parameter is false, the default login page should be displayed to allow users to authenticate to the admin application. However, users must be able to access directly to the cas authentication within this page. A link should be therefore displayed.
File : django_cas/views.py in _logout_url L.104
change :
url += '?' + urlencode({'url': protocol + host + next_page})
By :
url += '?' + urlencode({'service': protocol + host + next_page})
Seems to fix this problem
Is-it possible to add some REDIRECT_FIELD_NAME_AFTER_CAS_LOGOUT or something like that to permit redirect after logout in CAS ?
Thanks and regards
Hi,
I try to use this module with Django 2.x and it's not working.
Any plan to support Django 2.x ?
Error exemple :
if request.user.is_authenticated() => request.user.is_authenticated:
MiStErLu
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.