Projet

Général

Profil

0001-auth_saml-log-mapping-errors-during-user-creation-48.patch

Benjamin Dauvergne, 03 février 2021 20:40

Télécharger (967 octets)

Voir les différences:

Subject: [PATCH] auth_saml: log mapping errors during user creation (#48784)

 src/authentic2_auth_saml/adapters.py | 1 +
 1 file changed, 1 insertion(+)
src/authentic2_auth_saml/adapters.py
74 74
        try:
75 75
            self.provision_a2_attributes(user, idp, saml_attributes)
76 76
        except MappingError as e:
77
            logger.warning('auth_saml: failure during attribute provisionning %s', e)
77 78
            raise UserCreationError('user creation failed on a mandatory mapping action: %s' % e)
78 79
        if not user.ou:
79 80
            user.ou = get_default_ou()
80
-