Projet

Général

Profil

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

Benjamin Dauvergne, 26 janvier 2022 16:12

Télécharger (1,13 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
70 70

  
71 71
    _next_url = None
72 72
    service = None
73
    display_message_on_redirect = False
73 74

  
74 75
    @property
75 76
    def next_url(self):
......
232 233

  
233 234
        response = HttpResponseRedirect(url)
234 235
        # prevent unshown messages to block the navigation to FranceConnect
235
        response.display_message = False
236
        response.display_message = self.display_message_on_redirect
236 237

  
237 238
        # store nonce_seed in a browser cookie to prevent CSRF and check nonce
238 239
        # in id_token on return by generating the hash chain again
239
-