Commit Graph

4700 Commits

Author SHA1 Message Date
Frédéric Péters a93c66455f translation update 2019-10-04 14:47:22 +02:00
Nicolas Roche 05340b110b api: extend DRF date field to accept empty string (#36365) 2019-10-03 16:11:33 +02:00
Benjamin Dauvergne 96f8538a08 api: returns no user if service-slug is unknown (#35189) 2019-10-03 16:01:06 +02:00
Paul Marillonnet 27add2ce1b debian: fix typo in control file dependency (#36655) 2019-10-03 12:07:39 +02:00
Benjamin Dauvergne d9918e3467 api: filter users based on OIDC client authorized roles (#35191) 2019-10-03 10:41:03 +02:00
Emmanuel Cazenave a61d2bb55d jenkins: use ci@enttrouvert.org for notification 2019-10-02 13:27:13 +02:00
Paul Marillonnet 2349e21a01 adapt manager tests (#34133) 2019-10-02 12:16:39 +02:00
Benjamin Dauvergne f93c71a58b tests: add tests on a2_rbac post_migrate handlers (#34133) 2019-10-02 12:16:34 +02:00
Benjamin Dauvergne a313152f3a update translation (#34133) 2019-10-02 12:16:29 +02:00
Benjamin Dauvergne 968a6e2575 a2_rbac: add default role of service administrator (#34133) 2019-10-02 12:16:24 +02:00
Paul Marillonnet 4115e6756b debian: do not use unnecessary pre-dependencies (#36433) 2019-10-02 12:03:54 +02:00
Paul Marillonnet c5625c57a7 end django 1.8 support (#36429) 2019-10-02 12:02:05 +02:00
Paul Marillonnet 62441e2340 accounts: send validation email before self-triggered account deletion (#27823) 2019-10-02 11:33:20 +02:00
Frédéric Péters 588dcfb95c misc: consider all roles prefixed with _ as internals (#36504) 2019-10-02 10:11:54 +02:00
Benjamin Dauvergne b7b0b93e7a Copy attribute's DRF field kwargs before use (#36098)
Without it we get parameters from previous calls to
Attribute.get_kind().
2019-09-13 11:14:41 +02:00
Nicolas Roche 6a3a1c3ebe csv_import: import cleaned fields (#35800) 2019-09-12 18:45:18 +02:00
Frédéric Péters e18a48522f misc: ignore non-request objects in log filters (#35629) 2019-09-11 11:06:15 +02:00
Benjamin Dauvergne 2884230fe4 auth_fc: differentiate registration login block with a class (#29227) 2019-09-09 13:48:30 +02:00
Benjamin Dauvergne beb8327f40 a2_rbac: add ROLE_ADMIN_RESTRICT_TO_OU_USERS setting (fixes #35391)
It limits visibility of role's administrators to users of the same OU as
the role administered.
2019-09-09 13:05:20 +02:00
Benjamin Dauvergne 5133e00c04 a2_rbac: use bulk update of admin_role permissions (#35391) 2019-09-09 13:05:20 +02:00
Benjamin Dauvergne 43cb2f9c8c a2_rbac: remove unused argument to Role.get_admin_role() (#35391) 2019-09-09 13:05:20 +02:00
Benjamin Dauvergne 4c9fcce47f a2_rbac: validate uniqueness of Role.slug (#35767) 2019-09-09 13:04:48 +02:00
Benjamin Dauvergne 1a8783b8e7 a2_rbac: move tests (#35767) 2019-09-09 13:04:48 +02:00
Benjamin Dauvergne 7a7da5a984 authenticators: select default OU based on service's ACL (#35213) 2019-09-09 13:04:02 +02:00
Nicolas Roche 6d1731c08e api: add non blank validation on required attributes (#35647) 2019-09-06 17:07:48 +02:00
Nicolas Roche c98f24d13c api: add a hashed_password attribute for user api (#35482) 2019-09-05 15:31:40 +02:00
Benjamin Dauvergne ba6e8892b6 views: sign next parameter in logout() (#35782) 2019-09-05 15:16:51 +02:00
Benjamin Dauvergne bc3ef6f057 utils: add signed next_url support to make_url() (#35782) 2019-09-05 15:16:51 +02:00
Benjamin Dauvergne cb021541c6 custom_user: user DRF field to serializer custom attributes to JSON (#24401) 2019-09-05 12:52:00 +02:00
Benjamin Dauvergne ba721dbda5 api: factorize making a DRF field for an attribute (#24401) 2019-09-05 12:52:00 +02:00
Thomas NOËL 58f1c5d4b6 update french translation 2019-09-04 15:26:18 +02:00
Frédéric Péters 870ab13f79 misc: mark template-in-code string for translation (#32794) 2019-09-04 15:18:54 +02:00
Frédéric Péters 837c5de24b emails: always provide a site variable (#32789) 2019-09-04 15:04:46 +02:00
Benjamin Dauvergne aa584ad97d api: recreate get/update_or_create mixin at the view level (#35710) 2019-09-02 14:34:34 +02:00
Paul Marillonnet 7669f2d659 auth_oidc: make OIDCProvider.jwkset always be a jwcrypto JWKSet obj (#35346) 2019-08-27 16:03:02 +02:00
Frédéric Péters 900c8dab0f Revert "Revert "misc: remove auth2_ssl entrypoint (#35418)""
This reverts commit c8bce84a7a.
2019-08-19 17:37:17 +02:00
Frédéric Péters c8bce84a7a Revert "misc: remove auth2_ssl entrypoint (#35418)"
This reverts commit e9897ce3a2.
2019-08-19 17:05:23 +02:00
Benjamin Dauvergne 595f312b1c migrations: remove dependency on auth2_ssl (#35418) 2019-08-19 16:55:27 +02:00
Benjamin Dauvergne 40307f519c auth_saml: add more mapping actions in A2_ATTRIBUTE_MAPPING (#35302) 2019-08-19 16:49:12 +02:00
Benjamin Dauvergne 94486a726b utils: add module to evaluate condition expressions safely (#35302) 2019-08-19 16:49:12 +02:00
Benjamin Dauvergne 5cb84716c8 create authentic2.utils package (#35302) 2019-08-19 16:49:12 +02:00
Benjamin Dauvergne 0f17a56202 log_filters: get user and ip from record if present (#35302) 2019-08-19 16:49:12 +02:00
Frédéric Péters e9897ce3a2 misc: remove auth2_ssl entrypoint (#35418) 2019-08-19 16:37:25 +02:00
Frédéric Péters 983eb2084d build: limit to django-jsonfield<1.3, for Python 2 support 2019-08-18 11:39:53 +02:00
Frédéric Péters 8e4a5ef39a forms: mark fields expecting a new password (#26385) 2019-08-18 09:30:04 +02:00
Benjamin Dauvergne 5732f219c5 a2_rbac: rename role's admin role on role's rename (#34774) 2019-08-16 19:42:17 +02:00
Benjamin Dauvergne d6fbfaa0c8 a2_rbac: do not use lazy string in model name (#34774) 2019-08-16 19:42:17 +02:00
Benjamin Dauvergne 4a28edd5ae a2_rbac: remove unused symbol (#34774) 2019-08-16 19:42:17 +02:00
Benjamin Dauvergne d79de5eca4 api: prevent password change on get_or_create (#34950) 2019-08-12 11:29:34 +02:00
Paul Marillonnet e274ba1a16 auth_oidc: properly redirect to authz endpoint when logging in (#35294) 2019-08-07 16:22:33 +02:00