Commit Graph

337 Commits

Author SHA1 Message Date
Benjamin Dauvergne fe345e5746 tests: improve ldap tests with non ASCII characters in uid (#31273) 2019-03-11 20:49:34 +01:00
Benjamin Dauvergne 9ec79b6d24 ldap: ignore undecodable attribute values (fixes #31232)
Tests augmented with a jpegPhot binary attribute.
2019-03-08 22:22:08 +01:00
Paul Marillonnet 934d619f6b python3: use django.utils.six url-parsing functions (#31139) 2019-03-08 10:35:55 +01:00
Emmanuel Cazenave 9768e8fe3e OU attribute to hide username on user add (#25669) 2019-03-08 10:25:19 +01:00
Paul Marillonnet 54d01cf903 python3: use __future__.print_function (#31140) 2019-03-07 13:55:29 +01:00
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 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 4599df562a tests: add copyright header (#30252) 2019-03-01 17:30:00 +01:00
Benjamin Dauvergne e3e03d17e5 tests: non regression tests (#30577) 2019-03-01 16:09:18 +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
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 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
Benjamin Dauvergne a44d45fc24 data_transfer: save object in update_model (fixes #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 b03a76dfff manager: use and operator to combine terms (fixes #28952) 2019-01-18 19:29:54 +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
Benjamin Dauvergne 29eb8217f8 views: thread ?next= through pre-registration views (fixes #29242) 2019-01-14 10:33:45 +01:00
Benjamin Dauvergne 5095f90afc utils: use iri_to_uri/uri_to_iri to manipulate URLs in make_url (fixes #28935)
This patch add non-ASCII characters to URLs in OIDC and CAS tests to
check make_url() works correctly.
2019-01-14 10:32:19 +01:00
Frédéric Péters 3fe0a9f826 misc: add support for passwords hashed by Plone (#29430) 2019-01-03 17:01:07 +01:00
Benjamin Dauvergne 5cb0cb54c3 api: manage verified attributes (fixes #28962) 2018-12-18 17:39:18 +01:00
Benjamin Dauvergne 506de394f9 manager: dont require username or email for passwordless accounts (fixes #28916) 2018-12-18 17:27:56 +01:00
Benjamin Dauvergne b4110b3b3c auth_oidc: verify and store id_token nonce (fixes #29009) 2018-12-18 17:15:51 +01:00
Paul Marillonnet 0e34001537 manager: keep querystring while performing default ou user creation (#28897) 2018-12-17 16:34:36 +01:00
Paul Marillonnet f48147b471 user post-creation redirect based on 'next' keyword (#28931) 2018-12-17 16:16:10 +01:00
Benjamin Dauvergne b610880f07 data_transfer: check that import is a dictionnary 2018-12-07 15:04:02 +01:00
Benjamin Dauvergne f95cf05508 tests: use a certificate for localhost.entrouvert.org
I had to create an alias for localhost as libldap from OpenLDAP is
automatically aliasing localhost to the local FQDN when checking
certificate of a connection to ldap(s)://localhost. See
http://www.openldap.org/its/index.cgi/Incoming?id=6838;expression=rhafer@suse.de;statetype=-1
2018-12-05 18:03:51 +01:00
Benjamin Dauvergne 00d8d00a63 tests: set CN to localhost in cert.pem 2018-12-05 16:56:29 +01:00
Benjamin Dauvergne e86a87a2e7 tests: add missing TLS certificate 2018-12-04 18:48:07 +01:00
Benjamin Dauvergne acb2822992 ldap: fix setting client TLS certificate (fixes #28570)
New tests depends upon ldaptools 0.15.
2018-12-04 15:35:04 +01:00
Emmanuel Cazenave 0876d25dbd api: free text search on users (#15736) 2018-11-27 10:56:05 +01:00
Paul Marillonnet ceb683ee3c backoffice: support next url after user creation (#26652) 2018-11-27 09:26:36 +01:00
Benjamin Dauvergne 4c45876e0a idp_oidc: never use an invalid redirect_uri (fixes #28029)
Check of "redirect_uri" move earlier during authorization request
processing. For any redirect_uri check failure errors are only shown to
the end user and redirect_uri is never used to redirect to the
requesting RP.
2018-11-19 11:12:50 +01:00
Frédéric Péters f9a5a31deb manager: redirect users/add to user creation in default OU (#28106) 2018-11-19 10:06:40 +01:00
Serghei Mihai 4db66981f0 ldap: don't crash on duplicated users (#27697)
Keep roles on the more recently used user, then delete the other ones'.
2018-11-07 13:57:14 +01:00
Frédéric Péters c4bf1137af misc: set profile image file selector to suggest image files (#27646) 2018-10-30 10:23:11 +01:00
Frédéric Péters ace8072025 misc: give profile images a .jpeg extension (#27645)
This makes sure nginx will serve them with a correct MIME type.
2018-10-30 10:23:11 +01:00
Frédéric Péters 90ff2d46ab misc: automatically resize profile image (#27644) 2018-10-30 10:23:11 +01:00
Paul Marillonnet a5d652ce81 support avatar picture in user profile (#26022) 2018-10-30 10:23:11 +01:00