From af2ac67de2eef869f405600a4c7256068cbff24c Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 26 Jan 2022 15:02:27 +0100 Subject: [PATCH 5/6] auth_fc: allow showing messages on authorization requests (#61125) --- src/authentic2_auth_fc/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/authentic2_auth_fc/views.py b/src/authentic2_auth_fc/views.py index e63cd915..95078597 100644 --- a/src/authentic2_auth_fc/views.py +++ b/src/authentic2_auth_fc/views.py @@ -70,6 +70,7 @@ class LoginOrLinkView(View): _next_url = None service = None + display_message_on_redirect = False @property def next_url(self): @@ -232,7 +233,7 @@ class LoginOrLinkView(View): response = HttpResponseRedirect(url) # prevent unshown messages to block the navigation to FranceConnect - response.display_message = False + response.display_message = self.display_message_on_redirect # store nonce_seed in a browser cookie to prevent CSRF and check nonce # in id_token on return by generating the hash chain again -- 2.34.1