Commit Graph

823 Commits

Author SHA1 Message Date
Benjamin Dauvergne 7f8353561d auth_fc: handle case of multiple FranceConnect accounts with same email (#53409) 2021-04-27 21:24:27 +02:00
Valentin Deniaud 7eee08d081 csv_import: do not send creation email when simulating (#53453) 2021-04-27 14:44:11 +02:00
Benjamin Dauvergne c51adcfee8 clean-unused-accounts: use get_user_queryset() (#53446) 2021-04-27 14:26:26 +02:00
Benjamin Dauvergne 8915d6fc96 auth_oidc: add STRATEGY_FIND_USERNAME to match sub with username (#53445) 2021-04-27 06:54:35 +02:00
Benjamin Dauvergne c7418ad4eb tests: relax assertions in safe_get_or_create test 2021-04-27 06:54:09 +02:00
Valentin Deniaud f0d6958b93 manager: display role UUID (#52225) 2021-04-26 10:13:34 +02:00
Valentin Deniaud fd74358a9e manager: include oidc and saml federation info in user details (#28210) 2021-04-26 10:12:55 +02:00
Valentin Deniaud 30ee547427 manager: display progress while importing users (#50163) 2021-04-21 12:28:21 +02:00
Serghei Mihai 5ca05f327e auth_fc: restore button on registration page (#53241) 2021-04-19 11:19:22 +02:00
Benjamin Dauvergne 87677f6d7e auth_fc: completely move account creation into the view (#52929)
- removed unused popup mode
- removed unused cache customization
- removed unused app_settings
- removed obsolete FranceConnect data provider support
- added tests cases to augment coverage on error cases
- removed storage of fc_user_info in session
- removed old attribute mapping
- only save id_token in session on login
2021-04-19 10:28:50 +02:00
Benjamin Dauvergne c514c67927 utils: add a safe_get_or_create() primitive (#52929) 2021-04-17 18:34:02 +02:00
Benjamin Dauvergne cf9c0b2cc0 auth_oidc: report token endpoint errors to user and in logs (#47656) 2021-04-15 21:31:28 +02:00
Valentin Deniaud e7803635b9 auth_saml: handle underscores in idp slug (#52981) 2021-04-15 14:31:00 +02:00
Benjamin Dauvergne b429cfd794 forms: add honeypot field to password reset form (#52883) 2021-04-15 12:21:13 +02:00
Valentin Deniaud 7248bea3fe management: add command to cleanup old export files (#52626) 2021-04-15 11:18:33 +02:00
Valentin Deniaud 40e5bc9f0d manager: add permissions based access to global journal (#52765) 2021-04-12 14:50:05 +02:00
Benjamin Dauvergne cfb8a0619f tests: detect use of --nomigrations through pytestconfig
Module pytest_django.migrations was removed in pytest_django 4.2.0.
2021-04-11 16:25:37 +02:00
Benjamin Dauvergne 40eeaa9581 clean-unused-accounts: run every hour, but limit the number of notifications sent (#52644) 2021-04-09 15:18:34 +02:00
Benjamin Dauvergne c70f205987 views: use LDAPBackendPasswordLost to switch to LDAP account (#43585) 2021-04-09 14:47:18 +02:00
Benjamin Dauvergne 12fc2bca25 auth_fc: save unusable password of new users (#52855) 2021-04-08 12:05:23 +02:00
Serghei Mihai 20e610da0e auth_fc: check required attributes values (#52818) 2021-04-07 14:06:33 +02:00
Benjamin Dauvergne 0a880ddde4 utils: set LDAP auth backend when resetting password of an LDAP account (#52638) 2021-04-02 10:06:43 +02:00
Valentin Deniaud 91a190cda7 manager: easier journal filtering by event types (#50054) 2021-04-01 17:23:19 +02:00
Valentin Deniaud 36fd7c6545 manager: import roles using CSV (#24921) 2021-04-01 14:33:18 +02:00
Valentin Deniaud b3bc13d26c manager: export users asynchronously (#43153) 2021-04-01 14:28:43 +02:00
Serghei Mihai c79cc3963e auth_fc: remove registration view, create and log in user (#50964) 2021-04-01 12:30:31 +02:00
Benjamin Dauvergne 13cd493740 forms: specialize form for password reset by username (#52013) 2021-03-31 19:19:24 +02:00
Benjamin Dauvergne 5baca2ba03 data_transfer: validate Role.slug and Role.uuid fields (#52192) 2021-03-31 19:13:37 +02:00
Nicolas Roche b21d5a56b1 tests: copy/paste users tests to member users api (#50889) 2021-03-30 21:47:31 +02:00
Nicolas Roche ed01a4e8c3 api: add list and retrieve role member(s) api (#50889) 2021-03-30 21:47:31 +02:00
Nicolas Roche 852655fb95 api: upgrade change_role permission to manage_members (#50889) 2021-03-30 21:47:31 +02:00
Valentin Deniaud 4751846fed misc: remove six module usage (#52503) 2021-03-30 15:06:49 +02:00
Valentin Deniaud 8b506d4281 misc: remove some unused imports (#52457) 2021-03-30 14:00:27 +02:00
Valentin Deniaud 6c4aad3ab5 misc: remove some python2 compatibility code (#52457) 2021-03-30 14:00:27 +02:00
Valentin Deniaud 86d946adcd misc: apply isort (#52457) 2021-03-30 13:59:53 +02:00
Valentin Deniaud 4bb33d3d3c misc: apply black (#52457) 2021-03-30 11:32:55 +02:00
Valentin Deniaud 57ded4fd8f authenticators: attach login failure record to user (#51626) 2021-03-29 14:12:44 +02:00
Valentin Deniaud f962bd1870 manager: include ou in roles csv export (#45809) 2021-03-29 14:10:42 +02:00
Valentin Deniaud 5130aab946 manager: fix site_json field label (#52200) 2021-03-29 14:10:04 +02:00
Benjamin Dauvergne 14883ae89c misc: do not silence failures of migration authentic2.0028 (#47699) 2021-03-26 16:15:02 +01:00
Serghei Mihai 762cba9a2d ldap: add method and command to deactivate orphaned users (#6379) 2021-03-26 10:05:26 +01:00
Valentin Deniaud 62b7fb4d60 data_transfer: allow missing role slug (#51463) 2021-03-15 09:58:23 +01:00
Valentin Deniaud 961af9538e utils: add setting to choose email sending format (#50745) 2021-03-15 09:57:46 +01:00
Valentin Deniaud 0f4439afe1 csv_import: allow settings password hash (#50156) 2021-03-15 09:54:32 +01:00
Valentin Deniaud 7aa260def8 manager: allow execute from simulation in csv import (#50159) 2021-03-15 09:53:55 +01:00
Benjamin Dauvergne 534df33bbd manager: record then execute user deletion (#51671) 2021-03-05 15:53:14 +01:00
Frédéric Péters 902c862c6f trivial: fix typo in error message 2021-03-04 21:28:59 +01:00
Valentin Deniaud 4484b7cea8 tests: fix faulty email validator test (#51624) 2021-03-04 14:58:39 +01:00
Loïc Dachary 2048d0d004 ldap: redirect /password/change if it is about to expire (#51268)
Fixes: #51268

License: MIT
2021-03-04 12:12:15 +01:00
Valentin Deniaud 2c6c03a9c8 misc: send password reset email even if disabled account (#20830) 2021-03-04 10:57:10 +01:00