Commit Graph

5557 Commits

Author SHA1 Message Date
Benjamin Dauvergne ea62c3f8ca tests: update test_check_and_repair_managers_of_roles (#48372) 2020-12-15 11:08:02 +01:00
Benjamin Dauvergne 95b4528228 misc: remove update_roles_admins post_migrate (#48372) 2020-12-15 11:08:02 +01:00
Benjamin Dauvergne bdb80f27e8 misc: add checks and repairs on admin roles permissions and ou (#48372) 2020-12-15 11:08:02 +01:00
Benjamin Dauvergne c0c98c2da5 misc: fix check of manager's roles ou (#48372) 2020-12-15 11:08:02 +01:00
Benjamin Dauvergne e7a6477635 misc: format long line (#48372) 2020-12-15 11:08:02 +01:00
Benjamin Dauvergne 09c7bd1882 misc: move check of manager's roles (#48372) 2020-12-15 11:08:02 +01:00
Benjamin Dauvergne 00d2f2584a misc: does not check global email uniqueness (#48372) 2020-12-15 11:08:02 +01:00
Benjamin Dauvergne 42b3ab4b29 misc: change registration of check-and-repair methods (#48372) 2020-12-14 16:22:32 +01:00
Valentin Deniaud 4a36966b55 api: small adjustements to statistics endpoints (#49174) 2020-12-14 10:17:43 +01:00
Thomas NOËL f48d3b4cae style: show all password rules on one line (#49263) 2020-12-08 20:16:16 +01:00
Emmanuel Cazenave 52d0d79506 jenkins: make tox verbose 2020-12-08 16:36:12 +01:00
Benjamin Dauvergne e231c939a9 misc: ignore name argument for compatibility with DRF==3.4 (#49110) 2020-12-04 15:56:25 +01:00
Paul Marillonnet a8fa8543c6 translation update 2020-12-04 12:37:33 +01:00
Benjamin Dauvergne 1687d1a7a4 idp_oidc: make access_token validity depends on expiration or session existence (#48889) 2020-12-04 11:56:31 +01:00
Benjamin Dauvergne 847411c28f idp_oidc: replace secrets.compare_digest() for python<3.6 (#47900) 2020-12-04 11:21:49 +01:00
Benjamin Dauvergne 4b9be7a3cb idp_oidc: simplify oidc_client fixture (#47900)
* new test test_admin will test the admin view for creating OIDCClient
* default mapping are extracted in an app setting
* OIDC_CLIENT_PARAMS is now only used on the main test SSO, creatint
  less redundant tests
2020-12-04 11:21:49 +01:00
Benjamin Dauvergne 380215ff0d idp_oidc: implement correct error reporting in user_info (#47900)
* error and error_description are reported in a status 401 HTTP response,
  inside the WWW-Authenticate and inside the JSON body of the response.
2020-12-04 11:21:49 +01:00
Benjamin Dauvergne 21363956de idp_oidc: add a simple oidc client fixture (#47900) 2020-12-04 11:21:49 +01:00
Benjamin Dauvergne 34e8ca3ff4 idp_oidc: correctly load session in OIDCCode and OIDCAccessToken (#47900)
* access_token can be valid without a session or with a session linked to the user
* code is only valid with a live session linked to its user
* session was not loaded correctly, it's only loaded after accessing its
  content, and session_key is only checked if the session is loaded.
2020-12-04 11:21:48 +01:00
Benjamin Dauvergne a8214192a8 idp_oidc: improve error reporting in token endpoint (#47900) 2020-12-04 11:21:48 +01:00
Frédéric Péters d915700420 translation update 2020-12-04 08:28:06 +01:00
Benjamin Dauvergne e8d20c6b36 misc: decode bytes in User.set_random_password() (#49072) 2020-12-03 11:53:13 +01:00
Benjamin Dauvergne be38c3ab23 tox.ini: only show warnings from authentic2 2020-12-03 09:52:36 +01:00
Valentin Deniaud 2cc198dd70 api: add statistics endpoints (#48845) 2020-12-03 09:17:48 +01:00
Benjamin Dauvergne 206fec2122 tests: fix indentation (#47943) 2020-12-02 19:16:44 +01:00
Benjamin Dauvergne 550e5d1bf6 manage: ensure created users have a password (#47943) 2020-12-02 19:16:44 +01:00
Benjamin Dauvergne 9fe6ce378f misc: use set_random_password() in csv_import (#47943) 2020-12-02 19:16:44 +01:00
Benjamin Dauvergne 4a2305459f misc: add User.set_random_password() (#47943) 2020-12-02 19:16:44 +01:00
Paul Marillonnet 8c3902b2c2 misc: do not modify email when marking users as deleted (#48264) 2020-12-02 09:56:08 +01:00
Valentin Deniaud c1345a3356 journal: add event type statistics (#47467) 2020-12-01 17:36:22 +01:00
Benjamin Dauvergne 5371f986b6 backends: define a total ordering for user's querysets (#49009) 2020-12-01 12:28:01 +01:00
Frédéric Péters fda0fe2080 misc: don't display "Manually enter..." checkbox on disabled widget (#48953) 2020-11-30 12:46:26 +01:00
Paul Marillonnet c5d9257bc1 misc: remove references to deprecated menu module (#48906) 2020-11-27 11:35:26 +01:00
Paul Marillonnet a888b11c90 misc: remove references to deprecated dashboard module (#48906) 2020-11-27 11:35:16 +01:00
Serghei Mihai ed055e0892 authentic2_idp_oidc: verify next url againts clients redirect_uris (#48739) 2020-11-27 10:07:39 +01:00
Benjamin Dauvergne 1a995c8c8a translation update 2020-11-23 23:43:20 +01:00
Benjamin Dauvergne 08827ac552 api: check and normalize phone numbers (#48350) 2020-11-23 10:34:09 +01:00
Benjamin Dauvergne b2f926388b auth_oidc: handle case of multiple users with same email but email should be unique (#48339) 2020-11-20 12:34:54 +01:00
Benjamin Dauvergne 7fdf868b5c debian: restore use of launch-authentic2.sh in authentic2 package (#48701) 2020-11-20 09:30:47 +01:00
Benjamin Dauvergne 60c182181d misc: cleanup remaining tables from django-admin-tools (#48614) 2020-11-17 16:39:56 +01:00
Benjamin Dauvergne 0153163669 misc: remove check on sync-metadata --source option (#48500) 2020-11-13 21:41:15 +01:00
Benjamin Dauvergne f89842ffab misc: add more checks on email address localpart (#48133) 2020-11-05 20:39:19 +01:00
Benjamin Dauvergne 9dea38f1b4 misc: clean LDAP accounts of deleted users (#48168) 2020-11-03 19:56:35 +01:00
Benjamin Dauvergne 5ece3924bf auth_saml: clean accounts of deleted users (#48168) 2020-11-03 19:56:11 +01:00
Benjamin Dauvergne 0e24a314f4 auth_fc: clean accounts of deleted users (#48168) 2020-11-03 19:55:43 +01:00
Benjamin Dauvergne c56e4d684a auth_oidc: clean accounts of deleted users (#48168) 2020-11-03 19:55:11 +01:00
Benjamin Dauvergne 9b135fac07 misc: emit signals on DeletedUser creations (#48168) 2020-11-03 19:51:15 +01:00
Benjamin Dauvergne 7e013975f7 misc: set unusable password on federated users (#48136) 2020-11-03 17:31:33 +01:00
Benjamin Dauvergne 8b89b7cadc auth_oidc: normalize unicode strings (#48174) 2020-11-03 11:12:17 +01:00
Benjamin Dauvergne 5d28c9034c auth_oidc: make account unique on (provider, user) and (provider, sub) (#48174) 2020-11-03 11:12:17 +01:00