Commit Graph

4216 Commits

Author SHA1 Message Date
Paul Marillonnet 97c12bdbc9 manager: add settings for password section options on user add (#25666) 2019-03-06 15:58:12 +01:00
Emmanuel Cazenave 2741961ead access context through table object (#31092) 2019-03-05 13:34:32 +01:00
Frédéric Péters c63b9f0a26 tests: adapt oidc authorization code sso to new default timeout value (#30939) 2019-03-02 07:39:19 +01:00
Benjamin Dauvergne a486586bed idp_oidc: set default frontchannel_timeout to 300ms (fixes #30939) 2019-03-01 19:48:30 +01:00
Benjamin Dauvergne fae901f5a2 support ou selector in backends and forms (fixes #30252) 2019-03-01 17:30:36 +01:00
Benjamin Dauvergne fdc2959104 forms: add ou selector to login form (#30252) 2019-03-01 17:30:00 +01:00
Benjamin Dauvergne f44735179f utils: add a lazy_label helper (#30252)
It allows giving a default value for a label with a getter function to
allow customization.
2019-03-01 17:30:00 +01:00
Benjamin Dauvergne 4599df562a tests: add copyright header (#30252) 2019-03-01 17:30:00 +01:00
Benjamin Dauvergne 34f42d271a backends: PEP8ness, style (#30252) 2019-03-01 17:30:00 +01:00
Benjamin Dauvergne f29496c5f1 forms: PEP8ness, style (#30252) 2019-03-01 17:30:00 +01:00
Benjamin Dauvergne bc6892289e ldap: subclass LDAPObject to provide uniform unicode support (fixes #30577) 2019-03-01 16:10:05 +01:00
Benjamin Dauvergne 93a0935e49 ldap: use current password if we already know it (#30577)
No need to look it in the session.
2019-03-01 16:09:18 +01:00
Benjamin Dauvergne 75025ab544 ldap: use PASSWD command if old password is known (#30577)
If we do not know the old password it's better to try a MOD_REPLACE.
2019-03-01 16:09:18 +01:00
Benjamin Dauvergne e3e03d17e5 tests: non regression tests (#30577) 2019-03-01 16:09:18 +01:00
Benjamin Dauvergne de82c30847 tox.ini: add testing with python-ldap<3 (#30577)
Because there was big API change after version 3 and Debian stable is
still stuck with version 2.4.28.
2019-03-01 16:06:20 +01:00
Benjamin Dauvergne 1b9f11a3a7 tox.ini: set default environment to python2.7 (#30577)
In order to run in a python3 tox.
2019-03-01 16:06:20 +01:00
Serghei Mihai 506df5b5ce auth_saml: remove useless credentials param and add optional request (#30543)
And so assure compliance with Django 1.11
2019-02-14 09:34:04 +01:00
Benjamin Dauvergne d28a6bba25 ldap: allow provisionning of all user attributes (fixes #30535) 2019-02-12 11:49:04 +01:00
Benjamin Dauvergne 9d96274c7b tests: PEP8ness and style on test_ldap (#30535) 2019-02-12 11:48:59 +01:00
Paul Marillonnet 0861171b5b update django_rbac translations (#26156) 2019-02-06 10:22:14 +01:00
Paul Marillonnet b8209cf924 update authentic2_auth_oidc french translations (#26156) 2019-02-06 10:22:09 +01:00
Frédéric Péters 2ac3f0f99a translation update (#26156) 2019-02-05 18:20:42 +01:00
Benjamin Dauvergne 8ee1c232dc tox.ini: limit to pytest-django<3.4.6
See #30307 and https://github.com/pytest-dev/pytest-django/issues/698
2019-02-01 15:53:54 +01:00
Benjamin Dauvergne 8efca74775 manager: add ous export (#29162) 2019-01-31 15:05:13 +01:00
Benjamin Dauvergne 6f2b7f63bc manager: add roles export (fixes #29162) 2019-01-31 15:05:03 +01:00
Benjamin Dauvergne a26417bb76 tests: accept view name with login() (#29162) 2019-01-31 15:04:58 +01:00
Benjamin Dauvergne 002dff7acf data_transfer: add export context (#29162) 2019-01-31 15:04:56 +01:00
Benjamin Dauvergne 5815547369 tests: fix typo (#29162) 2019-01-31 15:04:51 +01:00
Frédéric Péters 6a8eed17d2 utils: add hook to decide if user can change/set password (fixes #28848) 2019-01-31 15:00:29 +01:00
Benjamin Dauvergne 1097339aeb setup.py: adopt a more PEP440 process to create version (fixes #29918) 2019-01-31 13:43:35 +01:00
Benjamin Dauvergne c52e23b5a7 manager: use get_table_data() to get queryset in ExportMixin (fixes #9414) 2019-01-31 13:16:08 +01:00
Benjamin Dauvergne fa28c50edc tests: do not use override_settings() at the class level
It's broken with pytest 4.2.0.
2019-01-31 12:53:39 +01:00
Emmanuel Cazenave 870bc65026 user export csv : exclude disabled attributes (#30103) 2019-01-25 15:29:50 +01:00
Emmanuel Cazenave c7f80a61d2 user export csv compatiblity with tablib < 0.11 (#30091) 2019-01-25 12:00:20 +01:00
Frédéric Péters 7e1f2ca385 debian: declare systemd service (#30016) 2019-01-23 10:08:09 +01:00
Benjamin Dauvergne 72dd3264cc apps: let router control JSON columns post migrations (fixes #29926) 2019-01-22 16:07:10 +01:00
Benjamin Dauvergne 275b7cd4db compat: ignore error on checking db vendor (fixes #29926)
compat can be loaded before initialization of db in tests, we must
ignore errors at such a time.
2019-01-22 14:31:40 +01:00
Benjamin Dauvergne a44d45fc24 data_transfer: save object in update_model (fixes #29545) 2019-01-21 12:07:21 +01:00
Benjamin Dauvergne ce72b9a24e data_transfer: fix indentation/whitespaces (#29545) 2019-01-21 12:07:21 +01:00
Benjamin Dauvergne 53b9f74ab2 data_transfer: move update_model (#29545) 2019-01-21 12:07:21 +01:00
Benjamin Dauvergne 75e0b37880 tests: simplify import_site tests (#29545) 2019-01-21 12:07:21 +01:00
Benjamin Dauvergne c60ed8b5ee compat: support pre 1.0 django-jsonfield (fixes #29917) 2019-01-19 15:33:10 +01:00
Paul Marillonnet 44d24825c7 python3 compatibility on setup.py (fixes #28278) 2019-01-19 12:23:01 +01:00
Benjamin Dauvergne 000f683601 compat: handle case of Django 1.11 without psycopg2 (fixes #29193) 2019-01-19 10:36:56 +01:00
Benjamin Dauvergne d730dba525 add compatibility layer for support of Django native JSONField (fixes #29193) 2019-01-18 19:30:41 +01:00
Benjamin Dauvergne b03a76dfff manager: use and operator to combine terms (fixes #28952) 2019-01-18 19:29:54 +01:00
Frédéric Péters a855c86c29 debian: add missing dh-sytemd dependency (#29839) 2019-01-17 09:57:31 +01:00
Emmanuel Cazenave f71dfaf15d allow redirect after user edition (#28779) 2019-01-15 16:37:06 +01:00
Emmanuel Cazenave 0ad3bf4dfe cancel user add: set correct location (#29181) 2019-01-15 16:32:03 +01:00
Emmanuel Cazenave 93c52a940c custom attributes prefetching (#29531) 2019-01-15 16:11:36 +01:00