Commit Graph

6093 Commits

Author SHA1 Message Date
Benjamin Dauvergne 02f0952f9c misc: delete unused safe_get_or_create (#64485)
Introduced in #60658 it used a global lock on model's table to prevent
multiple access, using the Lock model is simpler and more efficient.
2022-05-13 12:33:34 +02:00
Benjamin Dauvergne 362b4cbc0c misc: use lock on email when creating user instances (#64485) 2022-05-13 12:33:34 +02:00
Benjamin Dauvergne e555ca5a0a misc: add lock model (#64485) 2022-05-13 12:33:34 +02:00
Paul Marillonnet 873ebb3c7a translation fix, 2 2022-05-13 11:56:42 +02:00
Paul Marillonnet e7ed0b9e6f translation fix 2022-05-13 11:20:47 +02:00
Paul Marillonnet de64c812af translation update 2022-05-13 10:50:49 +02:00
Paul Marillonnet 415d5ed084 auth_saml: add plain i18n on mapping error messages (#65057) 2022-05-13 10:14:42 +02:00
Paul Marillonnet 243531b317 Jenkinsfile: run nightly build with django3.2 too (#64305) 2022-05-13 09:53:31 +02:00
Paul Marillonnet 43fe2fc307 tests: handle varying displayed role fields row order (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet b0132b0a15 tests/auth_fc: unset local no_proxy env variable (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 8635dec7fa tests: disregard apostrophe char variations between dj versions (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 66e8d63388 widgets: adapt ModelSelect2Mixin.filter_queryset prototype (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 07411e194b widgets: override select2's ns management with a2's url routing (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 7cedc98567 django3: try to read signed cookie content in tests (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 9b0ac49118 django_rbac: fix ContentType.__str__ variations (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 503a983320 api: test drf tz awareness errors in serializer datetimefield filters (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 17eb53dc24 templates: remove deprecated admin_static tag library (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet a93af50cd3 manager: remove unnecessary table deepcopy (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet b93c667c76 django3: fix FieldDoesNotExist import (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 27579fdd21 drop deprecated django curry in favor of functools.partialmethod (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet c101c0a746 define a _user_get_all_permissions util when necessary (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 5d3176648a settings: hard-code xstatic uris instead of gadjo templatetag reliance (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 8166c6d9ef saml: discard deprecated force_text in saml2utils (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 2c58c32a1a discard deprecated unicode-aware i18n utils (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 805436abf1 plugins: discard deprecated django.conf.urls.url (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 3d7fe3e19b debian: allow dependencies to be django-3 compliant (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet a26f30e3df tox: add locale to makemessages command (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 1c442d7be9 tox: ldaptools version compatible with openldap matching dj3 in debian (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 0d0f89345d tox: test with bullseye's django3 and matching dependency versions (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 7a9fb6938c setup: provide a bullseye's django3 compliant config (#64305) 2022-05-13 09:47:39 +02:00
Frédéric Péters deb99add97 auth saml: include unknown attribute name in logs (#65047) 2022-05-13 08:26:39 +02:00
Frédéric Péters 7a95834500 templates: remove spaces before question marks (#65077) 2022-05-13 08:26:39 +02:00
Benjamin Dauvergne c50f988286 tox.ini: simplify disabling of --sw 2022-05-11 21:32:22 +02:00
Serghei Mihai 0a79c4ded1 idp_oidc: display service info on authorization page (#64672) 2022-05-09 16:09:11 +02:00
Benjamin Dauvergne 7de36f8910 manager: set login_hint=backoffice on login (#64949) 2022-05-06 17:32:51 +02:00
Paul Marillonnet 0aecc5c620 tests: fix test pwdGraceAuthnLimit test value according to testcase (#64247) 2022-05-05 18:46:24 +02:00
Paul Marillonnet 84d2c76a70 tests: do not fail on absent schema in newer openldap versions (#64247) 2022-05-05 18:46:24 +02:00
Benjamin Dauvergne c1b80a6408 api: fix aggregation by service in statistics (#64853)
Reference to service can be any kind of model deriving from Service, and
grouping by the array column reference_ids cannot work as the column
could contain other references than to the service.
2022-05-04 19:17:05 +02:00
Frédéric Péters f3c52bc279 translation update 2022-05-04 09:48:13 +02:00
Frédéric Péters 4b4eac38d0 misc: remove usage of f-strings for translatable strings (#64827) 2022-05-04 09:48:13 +02:00
Frédéric Péters f1aa837556 translation update 2022-05-04 08:09:29 +02:00
Thomas NOËL 8d37449a5e debian: manage crons through uwsgi (#64256) 2022-04-29 15:03:02 +02:00
Benjamin Dauvergne 0cfd6ba7b5 forms: fail cleanly if LDAP user cannot be retrieved (#62866) 2022-04-29 12:16:43 +02:00
Benjamin Dauvergne 0148257950 forms: show error if all accounts for reset have no email (#62866) 2022-04-29 12:16:43 +02:00
Paul Marillonnet 4da7c8492f middleware: fix threading deprecated function call (#64643) 2022-04-28 11:48:57 +02:00
Benjamin Renard 067a4bdddb password reset: Fix error reporting when A2_USER_CAN_RESET_PASSWORD_BY_USERNAME is enabled (#64607)
License: MIT
2022-04-27 13:09:04 +02:00
Serghei Mihai 28b2278aae misc: show service name only if it's OIDC service (#64467) 2022-04-25 11:27:16 +02:00
Benjamin Dauvergne 1a6532cd46 translation update (#63646) 2022-04-22 15:53:53 +02:00
Benjamin Dauvergne 2bd568f6e8 ldap: use guid attributes as global external id (#63646) 2022-04-22 15:53:53 +02:00
Benjamin Dauvergne 39fb242e44 journal: log user deletion for inactivity (#63470) 2022-04-22 14:43:05 +02:00