Projet

Général

Profil

0002-auth_oidc-get-a-lock-on-the-sub-during-authenticatio.patch

Benjamin Dauvergne, 07 juillet 2022 13:06

Télécharger (858 octets)

Voir les différences:

Subject: [PATCH 2/2] auth_oidc: get a lock on the sub during authentication
 (#65412)

 src/authentic2_auth_oidc/backends.py | 2 ++
 1 file changed, 2 insertions(+)
src/authentic2_auth_oidc/backends.py
230 230
            if attribute == 'email':
231 231
                email = value
232 232

  
233
        Lock.lock_identifier(identifier=id_token.sub)
234

  
233 235
        User = get_user_model()
234 236
        user = None
235 237
        if provider.strategy == models.OIDCProvider.STRATEGY_FIND_UUID:
236
-