From 1c8c8117ff60f17cd130690c328fd44828f490db Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 3 Feb 2021 20:39:39 +0100 Subject: [PATCH] auth_saml: log mapping errors during user creation (#48784) --- src/authentic2_auth_saml/adapters.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/authentic2_auth_saml/adapters.py b/src/authentic2_auth_saml/adapters.py index 87c57beb..e7c4b54c 100644 --- a/src/authentic2_auth_saml/adapters.py +++ b/src/authentic2_auth_saml/adapters.py @@ -74,6 +74,7 @@ class AuthenticAdapter(DefaultAdapter): try: self.provision_a2_attributes(user, idp, saml_attributes) except MappingError as e: + logger.warning('auth_saml: failure during attribute provisionning %s', e) raise UserCreationError('user creation failed on a mandatory mapping action: %s' % e) if not user.ou: user.ou = get_default_ou() -- 2.29.2