Commit Graph

6323 Commits

Author SHA1 Message Date
Valentin Deniaud 884156d2c2 authenticators: hide empty kebab menu for password authenticator (#65477) 2022-05-31 10:08:56 +02:00
Valentin Deniaud 2b8243f97f authenticators: forbid disabling all authenticators (#65642) 2022-05-31 10:05:59 +02:00
Benjamin Dauvergne 13b117319f api: add endpoints to manage role inheritance (#62013) 2022-05-30 13:39:54 +02:00
Benjamin Dauvergne 477bc0cb7e rbac: add direct parameter to parents and children methods (#62013)
It will limit the parents/children roles returned to those with a direct inheritance relation.
2022-05-30 13:39:54 +02:00
Benjamin Dauvergne df780cafeb rbac: add helper methods to add/remove permissions from roles (#62013) 2022-05-30 13:39:54 +02:00
Benjamin Dauvergne b2ae197378 utils: add DjangoRBACPermission DRF's permission class (#62013) 2022-05-30 13:39:54 +02:00
Benjamin Dauvergne fdf7374113 utils: add NaturalKeyRelatedField class (#62013) 2022-05-30 13:39:54 +02:00
Benjamin Dauvergne cedbbf4514 rbac: add slug and name as implicit natural keys (#62013)
If the natural key is not precise enough, MultipleObjectReturned will be
raised preventing mismatches. But it will help using the API for simple
cases where the name is globally unique.
2022-05-30 13:39:54 +02:00
Benjamin Dauvergne 1c619b8947 tests: add fixture decorator for db fixture with global scope (#62013)
Creating a django_db fixture which persists between tests is not easy,
this decorator simplify it and completely replace pytest.fixture for
this use case.
2022-05-30 13:39:54 +02:00
Benjamin Dauvergne f72b98efa8 tests: move api tests in subdirectory (#62013) 2022-05-30 13:39:54 +02:00
Benjamin Dauvergne 2dfd0f5a44 api: reorder urls (#62013) 2022-05-30 13:39:54 +02:00
Benjamin Dauvergne a1a8a13a5a misc: copy context inherited context in authenticator's login (#65693) 2022-05-30 13:23:14 +02:00
Frédéric Péters 98873a399f translations: update to use "Modifier" and "Enregistrer" (#65736) 2022-05-27 16:33:54 +02:00
Frédéric Péters 593bc1a9df ldap: log missing mandatory group (#65725) 2022-05-27 09:02:30 +02:00
Frédéric Péters 316f4bf030 debian: fix pointer to uwsgi file (#65724) 2022-05-27 09:02:30 +02:00
Valentin Deniaud 015da29ee4 authentic2_auth_oidc: attach claims and accounts to new authenticator (#65504) 2022-05-24 16:45:01 +02:00
Valentin Deniaud f5b4bef88c Revert "authentic2_auth_oidc: attach claims and accounts to new authenticator (#65504)"
This reverts commit 3912f2648c.
2022-05-24 16:12:19 +02:00
Valentin Deniaud 3912f2648c authentic2_auth_oidc: attach claims and accounts to new authenticator (#65504) 2022-05-24 11:54:51 +02:00
Valentin Deniaud cd2fe7d2ac settings: restore auth frontend plugin registration (#65484) 2022-05-23 14:45:41 +02:00
Valentin Deniaud 8b71c41a0e authenticators: use only type as identifier in case of single instance (#65533) 2022-05-23 11:11:51 +02:00
Paul Marillonnet aad2185087 tests: handle quote character variation in django 3.2 onwards (#65495) 2022-05-23 10:06:27 +02:00
Benjamin Dauvergne 8f1ea08a62 idp_oidc: add iss and sid parameter to frontchannel_logout_uri (#65475) 2022-05-20 09:58:57 +02:00
Frédéric Péters 7b45f73cc7 translation update 2022-05-19 22:32:32 +02:00
Valentin Deniaud 297b97d633 authenticators: adjust show_condition field contraints (#65472) 2022-05-19 19:22:12 +02:00
Valentin Deniaud d01300d6f1 translation update 2022-05-19 18:01:47 +02:00
Valentin Deniaud 8eec403cb6 build: distribute src/authentic2/apps/authenticators/templates/ (#53902) 2022-05-19 17:09:13 +02:00
Valentin Deniaud 2c6b3d2e3a auth_oidc: migrate authenticator to database (#53902) 2022-05-19 16:25:12 +02:00
Valentin Deniaud 46c99d7816 authenticators: migrate login password authenticator (#53902) 2022-05-19 16:25:12 +02:00
Valentin Deniaud 8532ac64af authenticators: add new app (#53902) 2022-05-19 16:25:12 +02:00
Serghei Mihai 03082ffc11 templates: add blocks around service links (#65446) 2022-05-19 15:14:43 +02:00
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