From 00a1e79af61f829df3b8c3a1af8d6016b446a8d4 Mon Sep 17 00:00:00 2001 From: Basile Clement Date: Mon, 12 Nov 2018 00:54:44 +0100 Subject: [PATCH] Fix CAS support in python-cas 1.3+ cas.eleves.ens.fr has /serviceValidate, not /p3/serviceValidate, and is thus *probably* a V2 CAS server. python-cas was broken and using /serviceValidate for V3 while it should have been /p3/serviceValidate, see https://github.com/python-cas/python-cas/commit/c3ac4b6c769fcdf735cc48f9d51707041bc699b2 --- cof/settings/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cof/settings/common.py b/cof/settings/common.py index ebc7fb2a..4c853a16 100644 --- a/cof/settings/common.py +++ b/cof/settings/common.py @@ -186,7 +186,7 @@ LOGIN_URL = "cof-login" LOGIN_REDIRECT_URL = "home" CAS_SERVER_URL = "https://cas.eleves.ens.fr/" -CAS_VERSION = "3" +CAS_VERSION = "2" CAS_LOGIN_MSG = None CAS_IGNORE_REFERER = True CAS_REDIRECT_URL = "/"