Commit Graph

3974 Commits

Author SHA1 Message Date
Benjamin Dauvergne 81778dea85 admin: show disabled attributes (fixes #22893)
Also add the disabled field to the list display.
2018-03-29 15:05:43 +02:00
Benjamin Dauvergne ce78c8d8c7 urls: restore support for django-debug-toolbar (fixes #22872) 2018-03-29 10:28:57 +02:00
Benjamin Dauvergne 7bb909a225 manager: load django-select2 configuration early (#22864)
It prevents initialization of django-selevt2 inside tests. In some tests
settings are kept in a UserSettingsHolder which is cleaned at the end of
tests, resetting all keys set by django_select2.conf.
2018-03-28 21:25:53 +02:00
Benjamin Dauvergne ef736f42bd middlewares: clean stored request on exceptions (#22864) 2018-03-28 21:25:42 +02:00
Benjamin Dauvergne bbb341f571 debian-jessie: restrain to python-django-filters<2 (fixes #22351) 2018-03-26 14:53:49 +02:00
Benjamin Dauvergne ae35e23f77 setup.py: restrain to django-filter<2 (#22351) 2018-03-26 14:53:49 +02:00
Benjamin Dauvergne 722db42ec7 debian: create /etc/authentic2-multitenant/settings.d directory (fixes #22781) 2018-03-23 23:09:47 +01:00
Benjamin Dauvergne bcf5b9a001 tox.ini: use pytest-random 2018-03-23 15:45:47 +01:00
Frédéric Péters eb8f904c00 saml: fix typo in logout_synchronous_other_backends (#22600) 2018-03-19 12:56:13 +01:00
Frédéric Péters da636dd976 misc: fix typo in nonce creation error handling (#22599) 2018-03-19 12:56:13 +01:00
Frédéric Péters 04b4b52a76 translation update 2018-03-17 17:40:04 +01:00
Frédéric Péters 4410021670 templates: use "submit" as button label on account edit page (#22568) 2018-03-17 17:38:00 +01:00
Frédéric Péters 50803937f5 kinds: use explicit help text for birthdate widget (#22557) 2018-03-17 17:38:00 +01:00
Benjamin Dauvergne 3bb3dd63c5 idp_oidc: implement front-channel logout (fixes #22483) 2018-03-16 13:24:59 +01:00
Benjamin Dauvergne 20b829b1ee allow a post registration landing page (fixes #22378)
- add a new setting A2_REGISTRATION_REDIRECT, it can be an URL or a
tuple (URL, field_name). If a next URL was given to /accounts/register/
it's appended to the A2_REGISTRATION_REDIRECT URL as
?field_name=<next_URL> whose field_name default to "next".
2018-03-13 15:36:57 +01:00
Frédéric Péters c801664e54 translation update 2018-03-12 15:59:09 +01:00
Frédéric Péters 7e519f12dd views: define a title for the "password change" view (#22407) 2018-03-12 15:35:33 +01:00
Frédéric Péters 2bc22ef75d views: define titles for self servicing views (#22407) 2018-03-12 15:35:33 +01:00
Frédéric Péters 19c3da50b7 views: look for scope-specific template for edit page (#22401) 2018-03-09 15:26:29 +01:00
Benjamin Dauvergne 6fd389ddf1 idp_oidc: add a roles scope in create_user_info (fixes #22337) 2018-03-07 13:06:06 +01:00
Benjamin Dauvergne ac14107c8f api: Role should be looked-up using the uuid as the slug is not unique 2018-03-05 18:32:32 +01:00
Benjamin Dauvergne 04bb00b78a api: Role does not have a description field 2018-03-05 17:46:29 +01:00
Benjamin Dauvergne 1c898e443c api: make Role.ou default value a CreateOnlyDefault value 2018-03-05 17:46:29 +01:00
Paul Marillonnet 85da1be801 add role-creation API (#20706) 2018-03-05 17:46:26 +01:00
Paul Marillonnet eef27f8314 rename role membership API class (pre-#20706) 2018-03-05 17:42:21 +01:00
Benjamin Dauvergne 163f350506 pass ACCOUNT_ACTIVATION_DAYS to registration_complete template (fixes #22056) 2018-03-02 21:41:51 +01:00
Benjamin Dauvergne aa70d7b321 alter existing migrations to integrate choices and verbose_name changes (fixes #22132)
Affected applications are saml and authentic2_idp_oidc.
2018-03-02 17:41:01 +01:00
Benjamin Dauvergne 463c6dc8e2 idp_oidc: handle state parameter on logout (fixes #22180) 2018-03-02 17:27:22 +01:00
Frédéric Péters 2b97677d1e jenkins: install django so pylint can run (fixes #22186) 2018-03-02 17:07:20 +01:00
Benjamin Dauvergne c6832aba74 registration: handle MultipleObjectsReturned when checking uniqueness (fixes #22141) 2018-03-02 17:03:59 +01:00
Benjamin Dauvergne 22a885edfd tests: disable cache decorators by default (fixes #22227)
It makes behavior of tests erratic as it incurs side effects between
tests and even inside of tests. For example, caching of the OU count for
short periods is not harmful for day to day use as creating new OUs are
rare events but during tests it makes reasoning about code behavior
really difficult.
2018-03-02 12:05:09 +01:00
Benjamin Dauvergne f52c7445e6 tests: fix PASSWORD_HASHERS setting to work with RBAC tests (fixes #22199) 2018-03-01 19:14:22 +01:00
Benjamin Dauvergne b7274d2ddc auth_oidc: add hook to modify user before login (fixes #22209)
Hook is named a2_hook_auth_oidc_backend_modify_user, it takes
parameters:
- user
- access_token
- user_info
- id_token
- provider
2018-03-01 16:21:21 +01:00
Benjamin Dauvergne 9eb98fad5f auth_oidc: fix missing definition for base64url_encode (#22209) 2018-03-01 16:15:58 +01:00
Benjamin Dauvergne ce363ab81d filter attributes on edit-profile page by scope (fixes #21769) 2018-03-01 15:43:54 +01:00
Benjamin Dauvergne fcc3a92bff add a scope attribute to Attribute (#21769) 2018-03-01 15:43:54 +01:00
Benjamin Dauvergne 93cc7e363f add a next_url parameter to edit-profile view (#21769) 2018-03-01 15:43:54 +01:00
Benjamin Dauvergne 8ae64236cf tests: add more coverage for tests of next_url checking (#21769) 2018-03-01 15:43:54 +01:00
Benjamin Dauvergne 09dab1b45d saml: implement a2_hook_good_next_url for SAML 2.0 SPs (#21769) 2018-03-01 15:43:54 +01:00
Benjamin Dauvergne 06c37bec0a utils: add hook a2_hook_good_next_url (#21769) 2018-03-01 15:43:54 +01:00
Benjamin Dauvergne f6ff455fdf tests: do not clobber all hashing algorithms (fixes #22199) 2018-03-01 15:43:24 +01:00
Benjamin Dauvergne d645e3ee27 manager: don't show a message if email is not changed (fixes #21814) 2018-03-01 14:19:07 +01:00
Benjamin Dauvergne 65769ac3e8 tests: change default password to accelerate tests (fixes #22199) 2018-03-01 12:46:02 +01:00
Frédéric Péters 2c71cfeaf9 auth_oidc: fix typo when logging a warning (#22185) 2018-03-01 09:05:37 +01:00
Frédéric Péters a9d62aee62 translation fix (#9538) 2018-02-27 15:15:56 +01:00
Benjamin Dauvergne 666d016b91 allow redirect /accounts/ to an external page (fixes #21770)
New setting is A2_ACCOUNTS_URL.
2018-02-23 19:26:16 +01:00
Benjamin Dauvergne 740b0ad4b2 manager: pass queryset to user's role views search filter form (fixes #21940) 2018-02-19 16:46:59 +01:00
Frédéric Péters 9b4cb63f63 manager: fix French translation of change user email button (#21813) 2018-02-13 13:59:36 +01:00
Benjamin Dauvergne 08253fb2d3 manager: send new email in the email change verification mail (fixes #20564)
Use of a ModelForm keeping the original email field for the
UserChangeEmailForm makes keeping the original email value after clean()
is called impossible, as clean() is also responsible of transfering
value from the form into the model instance.

We keep using a ModelForm but we use a new field not present in the
model to get the new email and we override the save() method so that the
behaviour of sending the validation mail is kept inside the form and not
in the view. Only the call to the manager's hook
manager-change-email-request is kept in the view.
2018-02-07 21:16:22 +01:00
Benjamin Dauvergne f2e4208f28 Revert "tox: limit to pytest < 3.4 for now (#21610)"
This reverts commit 7c2b5f3fcb.
2018-02-07 19:01:19 +01:00