Projet

Général

Profil

0005-auth_fc-allow-showing-messages-on-authorization-requ.patch

Benjamin Dauvergne, 17 février 2022 20:00

Télécharger (1,12 ko)

Voir les différences:

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(-)
src/authentic2_auth_fc/views.py
68 68
    """
69 69

  
70 70
    _next_url = None
71
    display_message_on_redirect = False
71 72

  
72 73
    @property
73 74
    def next_url(self):
......
218 219

  
219 220
        response = HttpResponseRedirect(url)
220 221
        # prevent unshown messages to block the navigation to FranceConnect
221
        response.display_message = False
222
        response.display_message = self.display_message_on_redirect
222 223

  
223 224
        # store nonce_seed in a browser cookie to prevent CSRF and check nonce
224 225
        # in id_token on return by generating the hash chain again
225
-