From 1f230b2d136640dd06d38cfb233b1172467a3ce2 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 14 Dec 2023 20:54:13 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20logout=20CAS=20si=20CAS=5FAFTER=5FLOGOUT?= =?UTF-8?q?=20non=20positionn=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_cas/routing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_cas/routing.py b/flask_cas/routing.py index 6078b79c..dc2ee5d6 100644 --- a/flask_cas/routing.py +++ b/flask_cas/routing.py @@ -87,8 +87,8 @@ def logout(): flask.session.pop(cas_token_session_key, None) # added by EV flask.session.pop("CAS_EDT_ID", None) # added by EV - cas_after_logout = current_app.config["CAS_AFTER_LOGOUT"] - if cas_after_logout is not None: + cas_after_logout = current_app.config.get("CAS_AFTER_LOGOUT") + if cas_after_logout: # If config starts with http, use it as dest URL. # Else, build Flask URL dest_url = (